Skip to content

Swift implementation of Dave Thomas's Transitive Dependencies programming exercise

License

Notifications You must be signed in to change notification settings

ijoshsmith/transitive-dependencies-kata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Transitive Dependencies Kata

A concise Swift 2.2 implementation of Dave Thomas's Transitive Dependencies programming exercise, also known as a kata.

My approach to solving this problem involves visiting nodes in a dependency graph by iterating through a node's direct dependencies, recursing into indirect dependencies if possible. A Set collection is used to accumulate dependencies when applying reduce to a node's direct dependencies. That Set is also used to check if a node has already been visited, to avoid navigating cyclical dependencies.

Check out the details in main.swift.

About

Swift implementation of Dave Thomas's Transitive Dependencies programming exercise

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages