Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IsAnagram logic needs to be fixed #11

Open
harsh-athalye opened this issue Aug 20, 2015 · 1 comment
Open

IsAnagram logic needs to be fixed #11

harsh-athalye opened this issue Aug 20, 2015 · 1 comment
Assignees

Comments

@harsh-athalye
Copy link

@harsh-athalye harsh-athalye commented Aug 20, 2015

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.

@aalhour
Copy link
Owner

@aalhour aalhour commented Aug 20, 2015

Hi, thanks for your comment. I am well aware of that issue but haven't pushed the new fixes yet. I would like to know your comment regarding the new changes when I push them, so please do keep checking it.

On a side note, I think it would be more meaningful (from an educational standpoint) to have an algorithmic implementation that doesn't depend on LINQ, since you don't exactly know what happens under the hood. :)

@aalhour aalhour closed this Aug 20, 2015
@aalhour aalhour self-assigned this Nov 1, 2019
@aalhour aalhour added the question label Nov 1, 2019
@aalhour aalhour added this to To do in Kanban Board via automation Nov 1, 2019
@aalhour aalhour added bug good first issue and removed question labels Nov 1, 2019
@aalhour aalhour reopened this Nov 1, 2019
Kanban Board automation moved this from To do to In progress Nov 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Kanban Board
  
In progress
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.