/problems-and-solutions

A collection of problems and solutions

Primary LanguageSwiftMIT LicenseMIT

Problems and Solutions

Problems and Solutions is a collection of my Swift solutions for the problems given in Cracking the Coding Interview.

Prerequisites

  • Xcode command line tools with Swift 6 toolchain.

Usage

To build and run the IsUnique binary:

cd arrays-and-strings/is-unique
swift run IsUnique foo

Running Tests

All tests use the Swift Testing framework, which requires the Swift 6 toolchain.

I was unable to get swift test to work with Swift Testing.

To run tests for IsUnique.swift on an Apple Silicon Mac, use the following command:

xcodebuild test -scheme IsUnique -destination 'platform=macOS,arch=arm64'

Acknowledgements