Apple Interview Questions
- 0of 0 votes
AnswersExplain some of the text encoding types and advantages/disadvantages of each.
- Gaile January 31, 2014 in United States| Report Duplicate | Flag | PURGE
Apple SDE1 - 0of 0 votes
AnswersIf your browser crashes, how would you debug it only using the command line?
- Gaile January 31, 2014 in United States| Report Duplicate | Flag | PURGE
Apple SDE1 - 0of 0 votes
AnswersThere are 3 ants at 3 corners of an equilateral triangle they randomly start moving towards another corner what is the probability that they do not collide? Follow up: Suppose if all ants go in same direction(say ant 1 travels from point A to B, ant 2 from B to C and ant 3 from C to A. Either all ant travels in clockwise or anti clockwise) when will they collide
- Gaile January 31, 2014 in United States| Report Duplicate | Flag | PURGE
Apple SDE1 - 0of 0 votes
Answersdesign an iterator over a LinkedList of LinkedList's
- Gaile January 31, 2014 in United States| Report Duplicate | Flag | PURGE
Apple SDE1 - 0of 0 votes
AnswersHow will you sort 1 billion integers stored in an array?
- Gaile January 31, 2014 in United States| Report Duplicate | Flag | PURGE
Apple SDE1 - 1of 1 vote
AnswersHaving two distinct very large ordered array of values, find the mean value(not median) of the two arrays.
- Gaile January 31, 2014 in United States| Report Duplicate | Flag | PURGE
Apple SDE1 - 2of 2 votes
AnswersYou have a 100 coins laying flat on a table, each with a head side and a tail side. 10 of them are heads up, 90 are tails up. You can't feel, see or in any other way find out which side is up. Split the coins into two piles such that there are the same number of heads in each pile.
- Gaile January 31, 2014 in United States| Report Duplicate | Flag | PURGE
Apple SDE1 - 0of 0 votes
AnswersModel an elevator.
- Gaile January 31, 2014 in United States| Report Duplicate | Flag | PURGE
Apple SDE1 - 1of 1 vote
AnswersImplement an iterator for a binary search tree that will iterate the nodes by value in ascending order
- Gaile January 31, 2014 in United States| Report Duplicate | Flag | PURGE
Apple SDE1 - -7of 7 votes
Answershow we make a spftwre for pc
- yogeshtalreja080 January 24, 2014 for pakistan| Report Duplicate | Flag | PURGE
Apple - 0of 0 votes
AnswersReimplement this code so that its results will always be the same, but that it does not cause a stack overflow on large inputs. Your solution must still implement the Folder interface.
Coding
Your class must be named iteration.MyFolder
- techpanja December 11, 2013 in United Statespackage iteration; import java.util.Queue; public class MyFolder<T, U> implements Folder<T, U> { public U fold(U u, Queue<T> ts, Function2<T, U, U> function) { if(u == null || ts == null || function == null) throw new IllegalArgumentException(); if (ts.isEmpty()) { return u; } // The recursive implementation will overflow the stack for // any data set of real size, your job is to implement a // non-recursive solution // return fold(function.apply(ts.poll(), u), ts, function); return null; } } package iteration; import java.util.Queue; public interface Folder<T, U> { U fold(U u, Queue<T> list, Function2<T, U, U> function); } package iteration; public interface Function2<T, U, R> { R apply(T t, U u); }
| Report Duplicate | Flag | PURGE
Apple Software Engineer / Developer - 1of 1 vote
Answershow would you omplement an async task when it's not native in the programming language you're using?
- adam2008 November 15, 2013 in United States| Report Duplicate | Flag | PURGE
Apple Software Engineer / Developer - 0of 0 votes
AnswersHow would you create a stack backtrace once an exception has occurred on an x86 platform?
- ootah November 14, 2013 in United States for Kernel
EDIT: Sorry, I should have mentioned that you don't have GDB or any debugging tools. You're supposed to implement everything from scratch in assembly.| Report Duplicate | Flag | PURGE
Apple Software Engineer / Developer Assembly - 0of 0 votes
AnswerImplement a synchronized queue for multiple threads, avoiding race conditions and deadlocks
- ootah November 14, 2013 in United States for Kernel
EDIT: There was a tougher follow up btw: If you use any synchronization mechanisms, how might they be implemented at the assembly level?| Report Duplicate | Flag | PURGE
Apple Software Engineer / Developer Assembly C# - 2of 2 votes
AnswersOpen Ended: Design an email system
- techpanja October 02, 2013 in United States| Report Duplicate | Flag | PURGE
Apple Software Engineer / Developer Algorithm - 2of 4 votes
AnswersGiven two trees, find if tree 2 is the mirror image of tree 1.
- techpanja October 02, 2013 in United States| Report Duplicate | Flag | PURGE
Apple Software Engineer / Developer Data Structures - 2of 2 votes
AnswersWhat could be performance hits for searching on Local computer i.e. if you are searching computer for content what are the parameters you will consider for performance
- Anon June 27, 2013 in United States| Report Duplicate | Flag | PURGE
Apple Senior Software Development Engineer Algorithm - 1of 1 vote
AnswersHow will you design spotlight search feature in Mac OS
- Anon June 27, 2013 in United States| Report Duplicate | Flag | PURGE
Apple Senior Software Development Engineer Algorithm - 0of 0 votes
AnswersDifferentiate between Google search and local computer search
- Anon June 27, 2013 in United States| Report Duplicate | Flag | PURGE
Apple Senior Software Development Engineer Algorithm - 0of 0 votes
AnswerExplain B trees and its applications
- Anon June 27, 2013 in United States| Report Duplicate | Flag | PURGE
Apple Senior Software Development Engineer Algorithm - 0of 0 votes
AnswersWhich sorting algo you would like to implement as unix library and why?
- Anon June 27, 2013 in United States| Report Duplicate | Flag | PURGE
Apple Senior Software Development Engineer Algorithm - 1of 1 vote
Answers1. Compare
- Anon June 27, 2013 in United States
-Heap sort Vs Quick sort - worst case, avg case and best case with applications
-Heap sort Vs Merge sort - worst case, applications
Don’t confuse heap sort with building min.max heaps| Report Duplicate | Flag | PURGE
Apple Senior Software Development Engineer Algorithm - 22of 22 votes
Answerswrite a function :
- SDguy April 20, 2013 in United States
char * CreateEmptyString(int len);
function should return an pointer to an empty string of length len| Report Duplicate | Flag | PURGE
Apple Quality Assurance Engineer String Manipulation - 0of 0 votes
AnswersHow would you test ios simulator ? or How would you test an Android simulator ? note: the questions asks for how would you test the simulator itself and NOTapplications
- SDguy April 09, 2013 in United States| Report Duplicate | Flag | PURGE
Apple Quality Assurance Engineer test - 19of 19 votes
AnswersHow do you parse a phone number from a huge database of a 'n' billion webpages in 30 minutes ?
- Yashwanth January 30, 2013 in United States| Report Duplicate | Flag | PURGE
Apple Software Engineer in Test Algorithm - 0of 0 votes
AnswersDesigned a similar API like malloc, which has a similar functionality. How do you test the API ?
- Yashwanth January 30, 2013 in United States| Report Duplicate | Flag | PURGE
Apple Software Engineer in Test Testing - 0of 0 votes
AnswersThe producers write elements to a ring buffer(fixed size) while the consumers access elements from it. Implement a write and a read function using a producer pointer and consumer pointer. The consumer pointer cannot surpass the producer pointer and when the producer pointer reaches where it starts again, it stops.
- crazyomg23 January 17, 2013 in United States| Report Duplicate | Flag | PURGE
Apple Software Engineer / Developer C++ - 0of 0 votes
AnswersIf there are two threads in your app - T1 and T2. T2 has high priority. However, for some reason the priority decreases automatically. What could be the reason? How will you debug it? How will you fix it so that pririty stays the same, no matter what.
- snehaldesh1 October 05, 2012 in United States| Report Duplicate | Flag | PURGE
Apple Developer Program Engineer C - 0of 0 votes
AnswerDesign a chess game. Basics of a chess game was explained and a player could be human or AI.
- CodeSpace October 03, 2012 in United States
Follow-up questions:
* What are the main objects?
* How do the main objects interact with each other?
* Which object or objects own the current game state information?
* Implement the method to move a piece to another position on the board. method must communicate if the move is legal or not.
* How do you test the move piece method?| Report Duplicate | Flag | PURGE
Apple Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswersWrite a C function to remove all spaces from a string.
- CodeSpace October 03, 2012 in United States
Follow-up question: Explain the space and time efficiency of your solution.| Report Duplicate | Flag | PURGE
Apple Software Engineer / Developer String Manipulation