aalhour/C-Sharp-Algorithms

IsAnagram logic needs to be fixed

Fermée

#11 ouverte le 20 août 2015

 (1 commentaire) (0 réaction) (1 personne assignée)C# (1 409 forks)batch import
buggood first issue

Métriques du dépôt

Stars
 (5 736 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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.

Guide contributeur