if p1 and p2 are two consecutive prime number, in which cases (p1 + p2) / 2 is a prime number.
Programmer Developer Interview Questions
748,743 programmer developer interview questions shared by candidates
Define Yourself
What is a class?
Ik kreeg een lijst van n integers, vind de top van k integers. Wat is tijd-complexiteit van jouw oplossing? Given a list of n integers, find top k integers. What is time-complexity of your solution?
Implement the MyStack. (A lot of questions about multi-threading) @protocol Stack -(void)pushObject:(nonnull id)obj; -(nonnull id)popObjext; @property(nonatomic,assign)NSInteger count; @end @interface MyStack : NSObject <Stack> @end @implementation MyStack @end
Given a text file containing the text for Hamlet (/usr/share/file.txt), return the top 5 most frequent words with count.
There are 4 people who want to cross a bridge. They each take 1, 2, 5 and 8 minutes. Only 2 people can cross at a time and they take as long as the slowest person. What is the fastest time you can get everyone across? Then I was asked to write the mathematical equation to determine the trade-off point between each of the 2 approaches to solving this.
Given an unfair coin, devise an algorithm to produce a fair coin's output.
What are the most challenging tasks you faced in your previous projects and how did you handle them
Probability of a knight making a valid move on NxN matrix in m steps.
Viewing 1671 - 1680 interview questions