Backend Developer Interview Questions

9,192 backend developer interview questions shared by candidates

Given a 2-D int array, write an iterator that traverses it from left to right and top to bottom. The iterator has 2 methods - boolean hasNext() and int next(). The array can have rows of different sizes, so for e.g. 1, 2, 4, 5 5, 6 <null/empty>, 10, 40, 50 The 2D int array was represented as ArrayList<ArrayList<Integer>>().
avatar

Software Engineer (Backend)

Interviewed at Airbnb

4
Nov 18, 2015

Given a 2-D int array, write an iterator that traverses it from left to right and top to bottom. The iterator has 2 methods - boolean hasNext() and int next(). The array can have rows of different sizes, so for e.g. 1, 2, 4, 5 5, 6 <null/empty>, 10, 40, 50 The 2D int array was represented as ArrayList<ArrayList<Integer>>().

Viewing 911 - 920 interview questions

Glassdoor has 9,192 interview questions and reports from Backend developer interviews. Prepare for your interview. Get hired. Love your job.