Ios Lead Interview Questions

7,868 ios lead interview questions shared by candidates

- shuffle an array. got to demonstrate each element has equal probability to get this random number. e.g. [1, 2, 3, 4, 5] becomes [4, 2, 1, 5 3]. each element has a 0.2 probability to get the random num - create a data structure to add a number, remove a number, and get a random number from added numbers. All method must have runtime O(1)
avatar

IOS Engineer

Interviewed at Amazon

3.5
Dec 10, 2020

- shuffle an array. got to demonstrate each element has equal probability to get this random number. e.g. [1, 2, 3, 4, 5] becomes [4, 2, 1, 5 3]. each element has a 0.2 probability to get the random num - create a data structure to add a number, remove a number, and get a random number from added numbers. All method must have runtime O(1)

Viewing 6201 - 6210 interview questions

Glassdoor has 7,868 interview questions and reports from Ios lead interviews. Prepare for your interview. Get hired. Love your job.