Find First non-repeating character in a string
In the given stream of characters(string), find the first non-repeating character. Example Input string : ababcef Output : c Time complexity : O(1) Algorithm Here we use doubly linked list, The DLL contains all non-repeating character in order. 1. Create an empty DLL, array inDLL[] and repeated[] of size of …