[Codility/Swift] lesson 4 : FrogRiverOne
Task description
Notice : if frog is never able to jump to the other side of the river, return -1
Solution
In my solution, I used path array to check crossable leaves. path[x] represents leaf positioned at x. Initially, I stored integer values in ...
studio-pendant.hashnode.dev1 min read