aalhour/C-Sharp-Algorithms

IsAnagram logic needs to be fixed

Geschlossen

#11 geöffnet am 20.08.2015

 (1 Kommentar) (0 Reaktionen) (1 zugewiesene Person)C# (1.409 Forks)batch import
buggood first issue

Repository-Metriken

Stars
 (5.736 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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.

Contributor Guide