in first non repeating character in a string ,isn’t DLL a better approach?
First non repeating character in a string
@Tanishq200
DLL is a better approach but from implementation point of view queue is better. Using DLL u can get ur answer in O(1) at each step of insertion of character.
hope dis helps.