Ios Developer Interview Questions

5,594 ios developer interview questions shared by candidates

For my phone (and Collabedit) question, I was asked to implement functionality matching the description of this API: /* This class will be given a list of words (such as might be tokenized * from a paragraph of text), and will provide a method that takes two * words and returns the shortest distance (in words) between those two * words in the provided text. * Example: * WordDistanceFinder finder = new WordDistanceFinder(Arrays.asList("the", "quick", "brown", "fox", "quick")); * assert(finder.distance("fox", "the") == 3); * assert(finder.distance("quick", "fox") == 1); * * "quick" appears twice in the input. There are two possible distance values for "quick" and "fox": * (3 - 1) = 2 and (4 - 3) = 1. * Since we have to return the shortest distance between the two words we return 1. */
avatar

IOS Developer

Interviewed at LinkedIn

3.8
Apr 26, 2017

For my phone (and Collabedit) question, I was asked to implement functionality matching the description of this API: /* This class will be given a list of words (such as might be tokenized * from a paragraph of text), and will provide a method that takes two * words and returns the shortest distance (in words) between those two * words in the provided text. * Example: * WordDistanceFinder finder = new WordDistanceFinder(Arrays.asList("the", "quick", "brown", "fox", "quick")); * assert(finder.distance("fox", "the") == 3); * assert(finder.distance("quick", "fox") == 1); * * "quick" appears twice in the input. There are two possible distance values for "quick" and "fox": * (3 - 1) = 2 and (4 - 3) = 1. * Since we have to return the shortest distance between the two words we return 1. */

Viewing 111 - 120 interview questions

Glassdoor has 5,594 interview questions and reports from Ios developer interviews. Prepare for your interview. Get hired. Love your job.