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
Desarrollador Sr Java Interview Questions
713,772 desarrollador sr java interview questions shared by candidates
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.
Find count of unique characters in a given string
Given a string of format '2+3*2-1', calculate and return the result. No parenthesis in the input, just integers and + - * / operators. Operator precedence has to be considered. Linear time complexity and minimal data structure use is preferred.
Given a triangle, determine if its a scalene, equilateral, isosceles or neither... required knowledge of triangle properties, I learnt these properties about two decades ago so ofcourse I was fuzzy on the details, completely unexpected
Save a tree to an array
Viewing 1581 - 1590 interview questions