Given an unfair coin, devise an algorithm to produce a fair coin's output.
Desarrollador Python Junior Interview Questions
716,865 desarrollador python junior interview questions shared by candidates
Find count of unique characters in a given string
implement strtok
Imagine you have a string and you want to return False if there are repeat characters in this string, what are the fastest and most space efficient ways to do this. (I clarified and he only wanted to return False if there was a repeat letter or number)
Find the nth element in a linked list in constant time and space.
Save a tree to an array
Given a text file containing the text for Hamlet (/usr/share/file.txt), return the top 5 most frequent words with count.
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
//input: [1,2,[3,4,[5,6],7,[8,[9]]],10] //output: [1,2,3,4,5,6,7,8,9,10]
(this is a little easier to explain if it's drawn out, but I'll try my best to do it here) Given some integer N = 2^k which represents an NxN matrix, write a function that fills the matrix with 'L' shapes, such that the entire matrix is filled except for 1 empty space. For example, a 2x2 matrix would have 3 spaces filled with one of the corners empty. And a 4x4 matrix would have the entire outer row of spaces filled, with the center 4 filled the same way the 2x2 matrix is filled.
Viewing 1591 - 1600 interview questions