Problems and Solutions is a collection of my Swift solutions for the problems given in Cracking the Coding Interview.
- Xcode command line tools with Swift 6 toolchain.
To build and run the IsUnique
binary:
cd arrays-and-strings/is-unique
swift run IsUnique foo
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'