- Chapter 1: How to Use This Book
- Chapter 2: Complexity Analysis Essentials
-
Chapter 3: Two Pointers
- The Pattern Explained
- Pattern Recognition Signals
- The Two Main Variations
- Template: Opposite Direction
- Template: Same Direction
- Problem 1: Two Sum II — Input Array Is Sorted ★
- Problem 2: 3Sum ★
- Problem 3: Container With Most Water ★
- Problem 4: Trapping Rain Water ★
- Bonus Problem: Remove Duplicates from Sorted Array
- Chapter Summary
- What’s Next
-
Chapter 4: Fast & Slow Pointers
- The Pattern Explained
- Pattern Recognition Signals
- The Core Technique
- Linked List Node Definition
- Problem 1: Linked List Cycle ★
- Problem 2: Linked List Cycle II ★
- Problem 3: Happy Number ★
- Problem 4: Find the Duplicate Number ★
- Problem 5: Middle of the Linked List ★
- Bonus Problem: Palindrome Linked List
- Chapter Summary
- What’s Next
-
Chapter 5: Sliding Window
- The Pattern Explained
- Pattern Recognition Signals
- The Two Variations
- Template: Fixed-Size Window
- Template: Dynamic-Size Window
- Problem 1: Best Time to Buy and Sell Stock ★
- Problem 2: Longest Substring Without Repeating Characters ★
- Problem 3: Longest Repeating Character Replacement ★
- Problem 4: Minimum Window Substring ★
- Problem 5: Maximum Sum Subarray of Size K
- Problem 6: Permutation in String
- Chapter Summary
- What’s Next
- Chapter 6: Merge Intervals
-
Chapter 7: Binary Search
- The Pattern Explained
- Pattern Recognition Signals
- The Classic Template
- Common Pitfalls
- Problem 1: Binary Search ★
- Problem 2: Search in Rotated Sorted Array ★
- Problem 3: Find Minimum in Rotated Sorted Array ★
- Problem 4: Search a 2D Matrix ★
- Problem 5: Koko Eating Bananas ★
- Problem 6: Median of Two Sorted Arrays ★
- Chapter Summary
- What’s Next
-
Chapter 8: Linked List Manipulation
- The Pattern Explained
- Pattern Recognition Signals
- Node Definition Reminder
- Essential Technique: In-Place Reversal
- Essential Technique: Dummy Nodes
- Problem 1: Reverse Linked List ★
- Problem 2: Reverse Linked List II ★
- Problem 3: Merge Two Sorted Lists ★
- Problem 4: Merge K Sorted Lists ★
- Problem 5: Remove Nth Node From End ★
- Problem 6: Reorder List ★
- Chapter Summary
- What’s Next
- Chapter 9: Stack & Monotonic Stack
- Chapter 10: Heap / Priority Queue (Top K Elements)
-
Chapter 11: Binary Tree Traversal
- The Pattern Explained
- Pattern Recognition Signals
- Tree Node Definition
- The Four Traversals
- Problem 1: Invert Binary Tree ★
- Problem 2: Maximum Depth of Binary Tree ★
- Problem 3: Same Tree ★
- Problem 4: Subtree of Another Tree ★
- Problem 5: Binary Tree Level Order Traversal ★
- Problem 6: Diameter of Binary Tree ★
- Problem 7: Balanced Binary Tree ★
- Chapter Summary
- What’s Next
-
Chapter 12: Binary Search Tree (BST)
- The Pattern Explained
- Pattern Recognition Signals
- BST Properties to Remember
- Problem 1: Lowest Common Ancestor of BST ★
- Problem 2: Validate Binary Search Tree ★
- Problem 3: Kth Smallest Element in BST ★
- Problem 4: Convert Sorted Array to BST ★
- Problem 5: Insert into a BST ★
- Problem 6: Delete Node in BST ★
- Chapter Summary
- What’s Next
- Chapter 13: Tries (Prefix Trees)
- Chapter 14: Backtracking
- Chapter 15: Graph Traversal (BFS & DFS)
- Chapter 16: Advanced Graph Algorithms
- Chapter 17: Dynamic Programming - 1D
- Chapter 18: Dynamic Programming - 2D
- Chapter 19: Bit Manipulation
- Chapter 20: Math & Geometry
- Chapter 21: Problem-Solving Strategies
-
Chapter 22: Pattern Quick Reference
- Two Pointers
- Fast & Slow Pointers
- Sliding Window
- Binary Search
- Merge Intervals
- Linked List Techniques
- Stack / Monotonic Stack
- Heap / Priority Queue
- Tree Traversal
- Graph Traversal
- Topological Sort
- Union-Find
- Backtracking
- Dynamic Programming - 1D
- Dynamic Programming - 2D
- Bit Manipulation
- Complexity Quick Reference
- Chapter 24: Final Review & Next Steps
Mobile Coding Interviews Using Kotlin/Swift
Pattern-Based Problem Solving in Swift & Kotlin
Crack mobile coding interviews by mastering patterns instead of memorization. This book teaches you how to quickly recognize interview problems and solve them confidently using reusable Swift and Kotlin templates, exactly the way top iOS and Android candidates do. If you want to think clearly, code fast, and explain your solutions under pressure—this book is for you.
Minimum price
$29.99
$39.99
You pay
$39.99Author earns
$31.99About
About the Book
Mobile Coding Interviews: Pattern-Based Problem Solving in Swift & Kotlin is a practical, no-fluff guide to mastering coding interviews for iOS and Android developers. Instead of memorizing hundreds of problems, this book teaches you how to recognize recurring patterns and apply them confidently in Swift and Kotlin.
You’ll learn how interviews actually work, how to analyze time and space complexity quickly, and how to approach problems using a pattern-first mindset—the same approach used by top candidates at FAANG and mobile-focused companies. Each core pattern is broken down with clear recognition signals, reusable templates in both Swift and Kotlin, and carefully selected interview-favorite problems.
Covering everything from Two Pointers and Sliding Window to Graphs, Dynamic Programming, and Advanced Patterns, this book helps you build strong intuition, write clean code under pressure, and explain your thinking clearly during interviews. The final sections focus on practice strategy, pattern cheat sheets, and interview-day frameworksso you walk into interviews calm, structured, and prepared.
If you’re a mobile developer aiming to pass technical interviews by thinking in patterns—not panic—this book is your roadmap.
Author
About the Author
I am Mahmoud Ramadan. I am Android Tech Lead with 12 years of experience in Android Development.
I developed many apps like chatting, augmented reality, streaming, video calling and more. I am passionate about android programming and teaching. https://www.linkedin.com/in/mahmoud-ramadan-abdelwahed/
Contents
Table of Contents
The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.
You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!
So, there's no reason not to click the Add to Cart button, is there?
See full terms...
Earn $8 on a $10 Purchase, and $16 on a $20 Purchase
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
Write and Publish on Leanpub
You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!
Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.
Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.