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.
Mobile Software Engineer Interview Questions
351 mobile software engineer interview questions shared by candidates
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.
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]; } }
An objective C question: what function or method could be used to print out all available methods for any object at run time?
tell me two things that you learned from various of projects
Given a linked list that looks like this: Node * head; class Node { Node * next; } create a "reverse()" function that lives *within* the Node class that reverses the order of the linked list.
Viewing 11 - 20 interview questions