aalhour/C-Sharp-Algorithms

IsAnagram logic needs to be fixed

Open

#11 opened on Aug 20, 2015

View on GitHub
 (1 comment) (0 reactions) (1 assignee)C# (1,409 forks)batch import
buggood first issue

Repository metrics

Stars
 (5,736 stars)
PR merge metrics
 (No merged PRs in 30d)

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.

Contributor guide