Check if 2 strings are anagrams - Java

1. Check if both strings have same length
2. Sort the 2 strings using quicksort
3 Then compare

Comments

Popular posts from this blog

Find pair whose sum is k - java

Class, Reference and Object