[Codility/Swift] lesson 3 : FrogJmp
Task description
Notice: X, Y and D are integers within the range [1..1,000,000,000]
Solution
At first, I used a while loop to solve this problem, but it resulted in a timeout. Since the input can be as large as 1,000,000,000, we cannot use an O(N...
studio-pendant.hashnode.dev1 min read