Involved copying a linked list. The tricky part though was the objects in the list could refer to one another.
Mobile Software Developer Interview Questions
428 mobile software developer interview questions shared by candidates
If one has a collection of N stock options vesting over P periods, describe algorithmically how one would come up with the data for a table listing how many options are awarded per period.
Given a tree with potentially multiple child nodes, write an algorithm that describes how you would completely reverse (or mirror image) the tree. That is, given a tree with a root node of A and three children, BCD, and two children of B named EF, he wanted to generate a new tree that looked like a root node of A, then DCB with "FE" being the reversed children under B.
In Swift, what's the practical difference between struct and class?
Explain how the following two data structures work, and their pros and cons. 1) Hash table 2) Linked List (Unordered) bonus question (ugh): Why would you ever use a Unordered Linked List for storage of items?
Take home assignment. Given a shredded piece of paper with words broken up over it and a list of possible words and frequency in the english language, reform broken words. Most efficient way possible
What does C++ compiler do if i declare a class only as Class A{ };
Design an algorithm where you can detect a winning Tic-Tac-Toe game. Note: I heard anecdotally that their approach might instead focus on some card game (e.g. Poker or Blackjack or whatever), so be ready for shenanigans like this.
Nothing unexpected.
Here's some broken code, describe what's wrong with it: NSMutableArray * objects; // .... fills out objects with ReadyForDeletionObject objects for (uint i=0; i<[objects count]; i++) { ReadyForDeletionObject * object = [objects objectAtIndex: i]; if (object.shouldBeRemoved) { [objects removeObjectAtIndex: i]; } }
Viewing 11 - 20 interview questions