Meta Interview Question

Given a list of lists, implement the iterator interface, and write code for next() and hasNext().

Interview Answers

Anonymous

Nov 7, 2018

I couldn't, it wasn't anywhere on Leetcode and I wasn't prepared for such a question

Anonymous

Nov 9, 2018

Pretty much same logic as flattening 2D array.