about | help | code help+videos | done | prefs |
Parkour players run routes through an urban environment. They can go North, South, East, or West. Each letter 'N', 'S', 'E', or 'W' in the string represents one movement in that direction. Other characters in the string represent pauses or other activities that do not involve a change in position. The total Parkour distance is simply the total number of movements made. Return the Parkour distance. parkourDistance("NSESSSSEENW") → 11 parkourDistance("NN-E--") → 3 parkourDistance("EW/=-EE") → 4 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 240
Copyright Nick Parlante 2017 - privacy