Software Engineer 2 Interview Questions

665,793 software engineer 2 interview questions shared by candidates

Design an enumerator (e.g. named FBSuperEnumerator) that has two API's: - (id) nextObject; - (NSArray *) allObjects; // all objects remaining which, when given an input array that has content that can be either NSNumbers or NSArray, will expand all arrays embedded inside it. That is, given an input of something like @[@1, @[@2, @[@3, @4]], @[ ], @5], each call to nextObject will display items in the expected order.
avatar

IOS Developer

Interviewed at Meta

3.5
Oct 19, 2017

Design an enumerator (e.g. named FBSuperEnumerator) that has two API's: - (id) nextObject; - (NSArray *) allObjects; // all objects remaining which, when given an input array that has content that can be either NSNumbers or NSArray, will expand all arrays embedded inside it. That is, given an input of something like @[@1, @[@2, @[@3, @4]], @[ ], @5], each call to nextObject will display items in the expected order.

Viewing 1741 - 1750 interview questions

Glassdoor has 665,793 interview questions and reports from Software engineer 2 interviews. Prepare for your interview. Get hired. Love your job.