iOS Interview - Leetcode 347. Top K Frequent Elements
August 05, 2024 • ☕️ 2 min readSolving Leetcode Problem 347. Top K Frequent Elements
Solving Leetcode Problem 347. Top K Frequent Elements
Solving Leetcode Problem 102. Binary Tree Level Order Traversal
Solving Leetcode 15. 3 Sum
Explain heap data structure and implementation in Swift.
Solving Leetcode Problem 3. Longest Substring Without Repeating Characters
Solving Leetcode Problem 973. K Closest Points to Origin
Solving Leetcode Problem 542. 01 Matrix
Solving Leetcode Problem 57. Insert Interval
Solving Leetcode Problem 53. Maximum Subarray
Solving Leetcode Problem 217. Contains Duplicate
Solving Leetcode Problem 104. Maximum Depth of Binary Tree
Solving Leetcode Problem 876. Middle of the Linked List
Solving Leetcode Problem 543. Diameter of Binary Tree
Tricky interview question explained
Understanding when to use unowned references in Swift
Solving Leetcode Problem 67. Add Binary
Solving Leetcode Problem 169. Majority Element
Solving Leetcode Problem 206. Reverse Linked List
Solving Leetcode Problem 409. Longest Palindrome
Understanding Memory Management the differences between memory management mechanism in iOS and Android
Solving Leetcode Problem 70. Climbing Stairs
Solving Leetcode Problem 41. First Missing Positive
Solving Leetcode Problem 278. First Bad Version
Solving Leetcode Problem 383. Ransom Note
Solving Leetcode Problem 232. Implement Queue using Stacks
Solving Leetcode Problem 141. Linked List Cycle
Solving Leetcode Problem 110. Balanced Binary Tree in Swift
Solving Leetcode Problem 235. Lowest Common Ancestor of a Binary Search Tree
Solving Leetcode Problem 733. Flood Fill
Solving Leetcode Problem 704. Binary Search
Solving Leetcode Problem 242. Valid Anagram
Solving Leetcode Problem 121. Best Time to Buy and Sell Stock
Solving Leetcode Problem 226. Invert Binary Tree
Solving Leetcode Problem 21. Merge Two Sorted Lists
Solving Leetcode Problem 4: Median of Two Sorted Arrays
Understanding Dictionary data structure in Swift
Solving Leetcode 14. Longest Common Prefix
Solving Leetcode Problem 20: Valid Parentheses
Solving Leetcode Problem 7: Reverse Integer
Solving Leetcode Problem 9: Palindrome Number in Swift
Understand the Queue data structure to solve leetcode problems
Understand the Stack data structure to solve leetcode problems
Understand the Backtracking Algorithms to solve leetcode problems
Understand the Binary Search Pattern to solve leetcode problems
Understand the Hash Tables Pattern to solve leetcode problems
Create a custom map function in Swift
Understand the Dynamic Programming Pattern to solve leetcode problems
Understand the Breadth-First Search Pattern to solve leetcode problems
Understand the Depth-First Search Pattern to solve leetcode problems
Understand the two pointers technique to solve leetcode problems
Understand the sliding window pattern to solve leetcode problems
Understanding how Swift Compiler optimises applications for speed of execution
Mastering the use cases of Phantom Types in Swift
Workraround type-safe restrictions from the Swift compiler
How to implement thread-safe arrays in Swift
How to implement method swizzling to replace system methods with our own implementation in runtime
Great learning and quotes from the great book
How to use DispatchSemaphore to synchronise access to shared resources from multiple threads
Explaining iOS App Lifecycle, both for UIKit-based and SwiftUI-based apps, highlighting the differences between iOS versions.