You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor group_anagrams to use character frequency as key
Replaced sorted strings with character frequency tuples as keys for grouping anagrams. This improves algorithm efficiency by avoiding repeated sorting operations for each word. The behavior of the function remains unchanged.
0 commit comments