Skip to content

tmrff/problems-and-solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages