Round 1:
Round 2: [Manager]
Round 3:
Leadership principles:
A class iterator with hasNext(),next() are given. I have my own class with myHasNext() and myNext(). I will use the class Iterator functions to complete my own methods.
Eg: In a given page, I am having a list of items and when a new item comes up , I have to check if that item is already there in the last 10 seconds of span - if yes , remove it.Each item has a timestamp and an id.
myHasNext(): returns true if hasNext() is true and if that element has not been seen in the last 10 sec of time.
myNext(): returns the element if that element has not been seen in the last 10 sec of time. Else, remove it.
Round 4: