Monday, December 9, 2013

Given a stream of characters, find the first non-repeating character from stream. You need to tell the first non-repeating character in O(1) time at any moment.


Sunday, December 1, 2013

Given an integer N, print numbers from 1 to N in lexicographic order , You are not allowed to use any library functions