Ad
  • Default User Avatar

    In real project I prefer to see this code. Don't know who marks "best parctices" solutions above. I's a bit sad that first human-readable solution is so low in rating.

  • Default User Avatar

    Hey man. I was looking at your solution I couldn't understand why you would return jumps if pos < 0. Wouldn't you have to check whether the total pos was less than 0 instead of just a specific instance?