Backend Software Engineer Interview Questions

2,333 backend software engineer 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 231 - 240 interview questions

Glassdoor has 2,333 interview questions and reports from Backend software engineer interviews. Prepare for your interview. Get hired. Love your job.