Photo from Pixabay

Sample Swift Code Interview Questions — Part 1/2

Michael T. Ho
The Startup

--

As LeetCode extends its code challenge to May, it is a good opportunity for us to keep polishing up our coding skills. Besides, it is a helpful tool for us to prepare for iOS technical interviews.

Why would coding practice help our interviews? In my iOS technical interview experience (entry to mid-level), only less than 20% of them are about iOS field knowledge, the rest 80% of them are coding questions that require practical skills. Furthermore, most of those coding questions may not be as related to your daily iOS development, instead, they are mainly focusing on Data Structures and Algorithms. It would be better to get some sense of them before interviews.

Continuing on our April code challenge, I will publish another series of articles to talk through the challenge questions using Swift. In this May edition, instead of walking through all 30 questions, I intend to just select the questions that are more popular in interviews.

For people who want to work on their own, feel free to utilize my Github repo, which includes a solution and unit tests for each coding question.

In this article, we will discuss the following selected programming questions from May LeetCoding Challenge.

  1. First Unique Character in a String (Solution)

--

--