Problem Link: Vada Pav List
Link: My Solution
I have used TreeSet for implementing this to fetch names in Alphabetical order from the list. Is any better way to do this?
Problem Link: Vada Pav List
Link: My Solution
I have used TreeSet for implementing this to fetch names in Alphabetical order from the list. Is any better way to do this?
You can use trie.