Lead Ios Engineer Interview Questions

6,263 lead ios engineer interview questions shared by candidates

In the first technical, they asked a question related to closure and capture values which was something like: var string = "car" let closure = { [string] in print("I'm driving \(string)") } string = "truck" closure() Then a question related to lazy keyword whether lazy stuff is thread safe or not. Then a question where there's a kingdom in which there is a king. If the king dies, his child becomes the king otherwise the dead king's sibling becomes the next king. Write a function or computed property to get the currentHeir. (Had to use tree with depth first search to do this.)
avatar

Software Engineer II - IOS

Interviewed at Careem

3.7
May 22, 2022

In the first technical, they asked a question related to closure and capture values which was something like: var string = "car" let closure = { [string] in print("I'm driving \(string)") } string = "truck" closure() Then a question related to lazy keyword whether lazy stuff is thread safe or not. Then a question where there's a kingdom in which there is a king. If the king dies, his child becomes the king otherwise the dead king's sibling becomes the next king. Write a function or computed property to get the currentHeir. (Had to use tree with depth first search to do this.)

Viewing 4521 - 4530 interview questions

Glassdoor has 6,263 interview questions and reports from Lead ios engineer interviews. Prepare for your interview. Get hired. Love your job.