SWIFT CODING CHALLENGES

Join over 40,000 readers today

# PUT YOUR SKILLS TO THE TEST

Includes free updates for new Swift versions – click to read my update policy

Never fear a coding interview again: Swift Coding Challenges sets you the task of solving the most common questions you'll get asked at coding interviews. You get hints in case you get stuck, then complete solutions so you can compare your results.

### TEST YOURSELF

Can you balance a binary tree? Or recreate the map() method on collections? You're encouraged to solve every challenge yourself, so you can identify your weak points.

### CHALLENGE FRIENDS

Whether you're part of a Swift meetup or a college book club, Swift Coding Challenges makes great exercises to help generate discussion and solve problems as a team.

### NAIL INTERVIEWS

Next time you're given a white board test in an interview, Swift Coding Challenges can help ensure you have the confidence, skills, and experience to perform the way you deserve.

### EXERCISE YOUR BRAIN

If you just want to put your coding brain to the test, there's no better resource – and you'll learn as you go, because each challenge comes with a complete solution for Swift 4.2.

## WHAT'S IN THE COURSE

Swift Coding Challenges contains 64 challenges across five categories and three difficulty levels, so there's something for everyone. Here are some sample challenges that are covered:

• Given two strings, write a function that returns true if all letters are unique.
• Make a version of the min() method that returns the three smallest numbers in an array.
• Write an implementation of quick sort for arrays.
• Recreate the built-in map() method for collections.
• Write a function that returns the frequency of a word in an input file.
• Given a Tic-Tac-Toe board, write a function that returns true if either player has won the game.
• Write a function that accepts a binary tree and returns true if it's balanced.
• Given a string with no duplicate characters, write a function that returns an array containing all letter permutations.
• Write a function that accepts an integer array and returns its median value.
• Write a function that accepts a linked list that loops back to itself, and returns the item at the start of the loop.

Swift Coding Challenges helps develop your core skills, teaches you how to solve important problems, and builds confidence for job interviews – all in one book!