aalhour/C-Sharp-Algorithms

IsAnagram logic needs to be fixed

Chiusa

#11 aperta il 20 ago 2015

 (1 commento) (0 reazioni) (1 assegnatario)C# (1409 fork)batch import
buggood first issue

Metriche repository

Star
 (5736 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor