about | help | code help+videos | done | prefs |
Parkour players sometimes compete against each other. Write a method that returns a code indicating which player "wins" by having the higher score. The code is -1 if the first player wins, 1 if the second player wins, and 0 if the players tie. parkourWinner(56, 43) → -1 parkourWinner(23, 23) → 0 parkourWinner(81, 90) → 1 ...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: 290
Copyright Nick Parlante 2017 - privacy