Phone interview question # 1: Given an array (for example, [ 1, 0, 2, 0, 0, 3, 4 ]), implement methods that 1. returns the number of non-zero elements (4) 2. moves the non-zero elements to the beginning of the array (the rest of the elements don't matter) -> both [ 1, 2, 3, 4, 0, 0, 0] and [ 4, 1, 3, 2, X, Y, Z ] are valid
Ios Lead Interview Questions
1,612 ios lead interview questions shared by candidates
Verify that a binary search tree is indeed a binary search tree.
given an array of words, how to eliminate the duplicates? You have a simple tree structure Ⓐ and its clone ⓐ. Each node in the tree has a pointer to it's parent as well as an array of its children. Given an original tree's node Ⓑ and cloned tree ⓐ, implement a method that returns ⓑ (the clone of Ⓑ). (Imagine finding the matching UIButton/UISlider/UIView in a separate cloned view controller.) Original Ⓐ ┏━┻━━┓ ◯ ◯ ┏┻┓ ┏━╋━┓ ◯ ◯ ◯ ◯ ◯ ┏┻┓ ┃ ◯ Ⓑ ◯ Clone ⓐ ┏━┻━━┓ ◯ ◯ ┏┻┓ ┏━╋━┓ ◯ ◯ ◯ ◯ ◯ ┏┻┓ ┃ ◯ ⓑ ◯
iOS developers have a "dispatch_after(when, queue, block)" Grand Central Dispatch (GCD) function they can utilize but once it's set up, these calls can not be easily cancelled. Describe how you might implement a more convenient version of this named "cancellable_dispatch_after"
Can write a function which inputs two ints and check if it is 3 it should return 6 if input is 6 return 3, without using any condition.
Return the head node of the singly linked list with each pair of nodes swapped. If there is a last odd node leave it in place. Example: Input: 1 -> 2 -> 3 -> 4 -> 5 Output: 2 -> 1 -> 4 -> 3 -> 5
How objects can send messages to each other in Objective-C
Q: How would you explain protocol-oriented programming ? Q: Can you explain MVVM? Q: Explain what SOLID is?
First round : 1. If you have int array, how you will sum of that in objective c? 2. If you have string containing too many html tags, how you will remove that tags from string? Second round : 1. What is apns 2. why we share data on social site 3. what is gps 4. how to get distance between 2 location 5. knowledge in swift 6. what is delegate 7. diff between json and xml 8. what is storyboard 9. which controller has delegate.
Initialize a UIAlertView
Viewing 1 - 10 interview questions