[CC150] Ch1.4 Check anagram

1.4 Write a method to decide if two strings are anagrams or not.

First sort then compare... O(nlogn)
Use indicator vectors... O(n)

Comments

Popular posts from this blog

Maximum Gap

[ITint5] Maximum Subarray for a Circular Array

[CC150] Chapter 8 Object-Oriented Design