Reputation:
I have code to solve a sudoku board using a recursive algorithm.
The problem is that, when this code is run in Xcode, it solves the algorithm in 0.1 seconds, and when it is run in playgrounds, where I need it, it takes almost one minute.
When run in iPad, it takes about 30 seconds, but still obviously nowhere near the time it takes in xcode.
Any help or ideas would be appreciated, thank you.
Upvotes: 0
Views: 259
Reputation: 2875
Source files compiles as separate module, so don't forget about public/open
access modifiers.
To create source files:
Upvotes: 1