aalhour/C-Sharp-Algorithms

IsAnagram logic needs to be fixed

已關閉

#11 建立於 2015年8月20日

 (1 則留言) (0 個反應) (1 位負責人)C# (1,409 個分叉)batch import
buggood first issue

倉庫指標

星標
 (5,736 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

I think the IsAnagram() method doesn't work as expected. For example, it would fail for the below string combinations ("abc","bbb") or ("acdf", "bcde").

I think a simple LINQ implementation would be easy enough to implement here. If you like, I could do that and also implement unit tests for it.

貢獻者指南