Ios Interview Questions

7,861 ios interview questions shared by candidates

Screening question: Write a "recursiveDescription" function for a UIView that prints out subviews tree in a following example: <UIView> | <UIScrollView> | | <UIView> | | | <UILabel> | <UIView> | | <UILabel> A similar example could be a recursive iteration in folders/files or a tree.
avatar

IOS Engineer

Interviewed at Google

4.4
Jun 17, 2022

Screening question: Write a "recursiveDescription" function for a UIView that prints out subviews tree in a following example: <UIView> | <UIScrollView> | | <UIView> | | | <UILabel> | <UIView> | | <UILabel> A similar example could be a recursive iteration in folders/files or a tree.

Write a function that takes an array of floats (or doubles) as a parameter and returns a longest subsequence of floats where all elements have differences not more than 1 between each other. For example input: [4.2, 5.3, 4.6, 9.8, 1.5, 5.2, 4.7] output: [4.2, 4.6, 5.2, 4.7], -> if you find the difference between any pair of elements here, it would be less or equal then one.
avatar

IOS Engineer

Interviewed at Google

4.4
Jun 17, 2022

Write a function that takes an array of floats (or doubles) as a parameter and returns a longest subsequence of floats where all elements have differences not more than 1 between each other. For example input: [4.2, 5.3, 4.6, 9.8, 1.5, 5.2, 4.7] output: [4.2, 4.6, 5.2, 4.7], -> if you find the difference between any pair of elements here, it would be less or equal then one.

Viewing 1181 - 1190 interview questions

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