aalhour/C-Sharp-Algorithms

IsAnagram logic needs to be fixed

クローズ

#11 opened on 2015/08/20

 (1 件のコメント) (0 件のリアクション) (1 人の担当者)C# (1,409 件のフォーク)batch import
buggood first issue

Repository metrics

Stars
 (5,736 個のスター)
PR merge metrics
 (30d に merged 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.

コントリビューターガイド