Basic non dynamic programming leet code questions, that had an iOS bent to them.
Ios Developer Interview Questions
7,861 ios developer interview questions shared by candidates
write a method to detect where in the coordinate space you are and validate some requirements. Super easy stuff but having an intuition that answers the question immediately is not what they want.
phone screen: 1) write a method to detect if a rectangle is inside another rectangle. takes 2 params. the first one is bigger, the 2nd one is smaller. both params are frame (CGRect). return boolean, next question is leetcode 408 onsite: 1) write a method to take two string of numbers with decimal. e.g. "12.892347823" and "65655.62". return the sum of these two numbers in string. CANNOT convert param into integer. similar to leetcode 415, but it is decimal numbers 2) write a Array extension method like func remove(removeArray: [Int]). this method remove the elements in removeArray from original array. e.g. array has [1,3,3,4,5,1,6], removeArray is [1, 3], the method removes 1 and 3 from original array, so it returns [4,5,6]. 3) leetcode 31 4) leetcode 1249 System design: design an app similar to IG, but user swipe horizontally, and the app can swipe autmatically every 10 secs if user is doing nothing. when user swipes to next photo, timer resets to zero. Also, if you friend has a news feed posted, server can push to your app. new item is inserted to the front of the queue. e.g., the app has items 1,2,3,4,5. when your friends posted item 6 and 7 and you are looking at item 1, , your app will have 1, 6, 7, 2, 3, 4, 5. need to find a way for server to push to the app. (websocket, polling, or push notification. i chose polling). needs to explain what you choose.
A few Objective C memory management questions.
Name one property wrapper in SwiftUI
One interview with iOS specific questions (threading). Plus coding question: generating a 2d array, tripped up on index logic. Second interview generic question about a challenging problem I solved. Plus implement a calculator. Didn't make much progress on the calculator
No questions
General questions about Swift Concurrency and SwiftUI.
Architecture Patterns, Rich notifications, APNS, GCD, SOLID principle
1. Sorting an array with limited elements inside. 2. Given an array with elements' index added by a certain rule, sort it at a complexity less than nlogn 3. A design problem to help design the feed view controller. 4. Theoretical questions on multithreading and coredata.
Viewing 6341 - 6350 interview questions