swift
9 entries · all topics
Writing
- Binary Search
A search algorithm that finds the position of a target value within a sorted array.
- Stacks
Swift doesn't have a dedicated Stack struct. Let's create our own Stack struct.
- Queues
Swift doesn't have a dedicated Queue struct. Let's create our own Queue struct.
- iOS Software Engineer Interview
Questions that come up in iOS engineering interviews, from memory management and concurrency to the view lifecycle.
- Swift Code Interview
Classic Swift coding questions I collected while preparing for interviews, with a worked solution for each one.
- Dictionaries
Collection of key-value pairs where you can select the type of key, Int, String, Any, etc.
- Proportional Width or Height
You can use percentages for the width and height of your view with GeometryReader.
- How to display a dictionary in JSON format
Print a Swift dictionary to the console as pretty-printed JSON with a single line of JSONSerialization.
Projects
- Competitive Programming Challenge Solutions
More than 80 solutions to LeetCode, CodeSignal and HackerRank problems, written mostly in Swift and Kotlin rather than the usual C++.