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

EJB - Stateful vs Stateless

Inversion of Control vs Dependency Injection