Ios Engineer Intern Interview Questions

7,867 ios engineer intern 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 6191 - 6200 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 7,867 interview questions and reports from Ios engineer intern interviews. Prepare for your interview. Get hired. Love your job.