ClassicComputerScienceProblemsInSwift icon indicating copy to clipboard operation
ClassicComputerScienceProblemsInSwift copied to clipboard

Source Code for the Book Classic Computer Science Problems in Swift

Results 2 ClassicComputerScienceProblemsInSwift issues
Sort by recently updated
recently updated
newest added

A direct copy of the algorithm found in https://github.com/davecom/ClassicComputerScienceProblemsInSwift/blob/master/Classic%20Computer%20Science%20Problems%20in%20Swift.playground/Pages/Chapter%203.xcplaygroundpage/Contents.swift can give results that violate the same row constraint (if the format is "column: row"). For example: "[2: 3, 5: 4,...

Line 145 and line 155 could be updated to use Float.random(in: 0 ... 1) https://github.com/davecom/ClassicComputerScienceProblemsInSwift/blob/3773196cbd3c29bdc09a066c48c7a86b06c7856b/Classic%20Computer%20Science%20Problems%20in%20Swift.playground/Pages/Chapter%202.xcplaygroundpage/Contents.swift#L145