- 17
- 18 055
iOS Interview Preparation
เข้าร่วมเมื่อ 29 ธ.ค. 2022
Hello There!
Welcome to the AppX channel.
Our aim is to bring the best of tech interview knowledge to you! We shall share the most asked questions in Swift, iOS development.
Solving each question practically rather than just focusing on Theory!
We hope you'll Learn and Grow by watching our Content! Cheers!
We would try to answer all the comments so don't hesitate to leave your question.
Happy Learning :)
Welcome to the AppX channel.
Our aim is to bring the best of tech interview knowledge to you! We shall share the most asked questions in Swift, iOS development.
Solving each question practically rather than just focusing on Theory!
We hope you'll Learn and Grow by watching our Content! Cheers!
We would try to answer all the comments so don't hesitate to leave your question.
Happy Learning :)
Deliveroo Interview Question | Data Structure | iOS SSE Interview
Filter items of dictionary based on array to create a menu for restaurant.
let menuItems: [String: Double] = ["Burger": 5.99, "Pizza": 8.99, "Pasta": 7.49, "Salad": 4.99, "Soda": 1.99]
let selectedItems: [String] = ["Burger", "Pizza", "Soda"]
let menuItems: [String: Double] = ["Burger": 5.99, "Pizza": 8.99, "Pasta": 7.49, "Salad": 4.99, "Soda": 1.99]
let selectedItems: [String] = ["Burger", "Pizza", "Soda"]
มุมมอง: 1 121
วีดีโอ
Copy on Write Swift | iOS | Top Asked Interview Question | Value Type vs Reference Type
มุมมอง 4717 หลายเดือนก่อน
Copy on Write is an important concept through which Swift enhances its memory utilisation and performance. In this video, I have explained: 1. The Problem 2. The Need 3. The Solution I have created 2 examples as well, one using array and another using Struct.
GRAB iOS Interview Question | SSE | Implement a custom Optional type in iOS | Optionals are Enums!
มุมมอง 8957 หลายเดือนก่อน
How to implement a custom Optional type in iOS, in cases where the built-in optional operator (?) is not available in the framework. #grab #grabindonesia #ios #iosinterview
Mobile System Design Interview Tips | iOS | Android | UX and UI components & guide
มุมมอง 5037 หลายเดือนก่อน
A quick guide or tips to nail down mobile system design interviews for big/medium tech companies. Pretty useful for both iOS & Android Engineers. There are very few resources for mobile engineers to prepare for System Design round, I have discussed all the parts of the System Design round like understanding the problem (gathering requirements), approach, identification of technical requirements...
Just 12 minutes to avoid problems at workplace! Mindfulness | Leadership Skills | Behavior Cycle
มุมมอง 151ปีที่แล้ว
Welcome to our channel, where we embark on a transformative journey towards inner peace and self-discovery through the practice of mindfulness. In this video, we delve deep into the art of mindfulness, offering you practical techniques and insights to cultivate a more present and harmonious life. 🌿 What is Mindfulness? Mindfulness is more than just a buzzword; it's a way of life that empowers y...
How to test Async code in Swift iOS | Interview Question | Achieve 100% code coverage
มุมมอง 1.2Kปีที่แล้ว
How to implement a Mock?? How to test Async code in Swift iOS | Interview Question | Achieve 100% code coverage #swiftprogramming #ios #interview #iosinstagram #unittesting
Expedia iOS Interview Question | Race Condition Swift Coding Problem | Modifying Array Concurrently
มุมมอง 2.2Kปีที่แล้ว
Race Condition DispatchQueue Interview Question | Swift Coding Problem | Most Confusing Problem #swiftprogramming #ios #interview #iosinstagram
DispatchQueue Interview Question | Swift Coding Problem | Most Confusing Problem
มุมมอง 5Kปีที่แล้ว
DispatchQueue Interview Question | Swift Coding Problem | Most Confusing Problem #swiftprogramming #ios #interview #iosinstagram
Swift Interview Question | isEmpty vs count == 0 | 60 Seconds Video
มุมมอง 302ปีที่แล้ว
Do you know the difference between using isEmpty vs count 0, if not watch this less than 60 seconds video to learn the basic Swift fundamentals. isEmpty performance is O(1) and is more readable! Watch the video to know more! #swiftprogramming #foundation #isEmpty
Swift Interview Question | Capitalized vs uppercased | 60 Seconds Video
มุมมอง 183ปีที่แล้ว
Do you know the difference between Capitalized and uppercased, if not watch this less than 60 seconds video to learn the basic Swift fundamentals? #swiftprogramming #foundation
Facebook Interview Question! Can you write your own High Order MAP Function? | Product-Based Company
มุมมอง 895ปีที่แล้ว
High Order functions are part of day to day dev's life and is one of the Hot Topic for interview as well! If you're able to write your own custom high order function it means you understand Generics, closures and loops pretty well. Let me know your thoughts in the comments section! #swift #highorderfunctions #generics #protocols
Closures Swift Interview Code | Capture List in Closures | Product based Company Interview Question
มุมมอง 2Kปีที่แล้ว
Closures are easy to begin with, but make sure you talk about capturing of values, capture lists (unowned vs weak), and why they are actually useful compared to other approaches. It’s possible your interviewer is looking for a broader discussion of functions as first-class types in Swift. Do let us know your thoughts in the comments!
Generic function to add 2 numbers Swift | Product Based Company iOS Interview Question | IMPORTANT
มุมมอง 468ปีที่แล้ว
If you are preparing yourself for the product-based company interviews the #generics and #protocols are very very important. This video demonstrates an interview question on Generics and Protocols using the Swift code problem.
Weak Reference Type Interview Code Problem | Swift mostly asked Interview Question
มุมมอง 599ปีที่แล้ว
Weak Reference Type Interview Code Problem | Swift mostly asked Interview Question
Difference between Optional and Implicitly Unwrapped Optional | Important Swift Interview Question!
มุมมอง 1Kปีที่แล้ว
Difference between Optional and Implicitly Unwrapped Optional | Important Swift Interview Question!
Sorry, but your solution is not 100% correct. The return type is wrong. If someone calls let arr = ["Hello", "World", "lets go"] print(map(arr) { $0.count }) your solution will throw an error. The correct solution would be: func map<T, U>(_ elements: [T], _ transform: (T) -> U) -> [U] { var results = [U]() for element in elements { results.append(transform(element)) } return results }
The output part you talked about at the end is wrong. In Swift, we always have an unordered dictionary which is output1 in your case. Try running your program more than once and you can see the change in the output. The output preserved in the same order in your video is just a coincidence.
The possible solutions can be 1. Using serial queues - Use a serial queue inside the concurrentPerform 2. Using NSLock - something like this lock.lock() print (array) let last = (array.last ?? 0) + 1 array.append(last) lock.unlock()
good explanation
Great m, well crafted 🎉
By the way map not always return same as input type. Transform can decide output type. so type U also may required.
I was asked a question similar to this for Blinkit's interview
Awesome content so far in this playlist, very crisp and clear to the point, without any beating around the bush. I like it. Thanks a lot Brother. 🏹➡🎯.
Good ❤
let output1 = Dictionary(uniqueKeysWithValues: selectedItems.compactMap { key in menuItems[key].map { (key, $0) }})
Hii, I seen your video what I did not understand How data structure managed in this. Please explain more.
Thanks for sharing such interview questions. Please continue to share such videos, we are getting educate from you.
Your videos are very informative. I am learning a lot from all these. I will request you to please share more videos like these, where we learn on market standards and current internet trends and how we ca prepare for such topics. Please help sharing such information. people like us, who don't have much exposure, only these kind of videos educate us. THANKS
1 query : as we initialised 'anotherObject' in line 8 then at least in line 9 it should need to print the default value of name as 'Name '. i previously was thinking, the print will come as Name, but once the compiler goes out of scope of someFunc() then anotherObject becomes nil. Please help make me understand this concept, Many Thanks for this video. What's your name ?
this is classic race condition, you can't be sure that 9 is printed after 1, maybe global queue starts implementing first async block right away and prints 2 after 1
Why did 8 come second last? Is 8 in the same thread(global) as 2 & 4. Can you please clarify?
Yes, it's in the same global queue block.
Promo'SM
And what is the solution? Using serial queues? Or Actors?
The problem statement can be described like this: Functional Requirements: Generic Type: The MyOptional type should be generic, capable of holding any type of value. Initialization: It should be possible to initialize MyOptional with a value or as nil. Unwrapping: Implement a method to safely unwrap the value, returning a default value if the optional is none. Optional Chaining (Bonus): As a bonus challenge, implement a simplified form of optional chaining that allows methods and properties to be accessed on the optional's value directly from the MyOptional instance. Example Inputs & Outputs: Initialization Input: let myString: MyOptional<String> = MyOptional.some("Hello") Output: An instance of MyOptional holding the string "Hello". Input: let myNil: MyOptional<String> = MyOptional.none Output: An instance of MyOptional representing none. Unwrapping Input: myString.unwrap(default: "Default") Output: "Hello" Input: myNil.unwrap(default: "Default") Output: "Default" Technical Requirements: Use Swift as the programming language. Make sure your custom optional type is generic and can work with any data type. Ensure that your implementation is safe and follows Swift's error-handling and type-checking best practices. Ref: enginebogie.com/public/question/implementing-a-custom-optional-type-in-swift/730
Nice video. Would be good to show optional chaining usage etc. ? And !
import Foundation func testDispatch() { print ("1") DispatchQueue.global().async{ print("2") DispatchQueue.main.async{ print("3") } print("4") DispatchQueue.main.sync{ print("5") } DispatchQueue.main.async{ print ("6") DispatchQueue.main.sync{ print ("7") } } print ("8") } print ("9") } testDispatch()
yor playlist is amazing, make more such short videoed playlists:)
Awesome.
I was asked similar question in an interview and was not able to answer it. Thanks for making a detailed explanation on this topic.
thanks !! clear explanation. A better solution could have been by creating an extension on Collection, so that it can be used like Swift map function
can you explain more example
Nice
Keep the good work mate... can we expect something on unit test case with TEST DOUBLE and how respective can be used.. small xcode project would help.. apologies for such ask but really wana see your approach
Great video, the song between your dialogs is louder than your voice which is annoying. Please consider it for your next videos. thanks
Nice video. What if I want to reuse the same method to add 2 strings (concatenate the 2 strings) ? What protocol should be used in that case?
Simple and neat. Thanks !
it will more help full if you also add DS questions ☺️
Thanks for the comment. Let me try and do it. Sorry, I have not been quite active these days.
@@appgenie no issue bro 👍
superb content
nice..