Tuesday, July 11, 2017

Leetcode 49: Group Anagrams

July 11, 2017

Introduction



Group anagrams is Julia's favorite algorithm 5 months ago. Julia asked the question on the code review site, here is the link. So far, there are only 102 views. Here is the coding blog about the practice on Feb. 4, 2017.

Plan to go through the discussion of Leetcode 49 group anagrams algorithm. It is the great learning experience to go over difference ideas, and practice one by one using C# programming language.


Algorithm study 


Here is one of the C# practice. The idea is very simple, sorting the char array so that the anagram string can match the key of hash table. 


No comments:

Post a Comment