Running Athlete 🏃

Published by Mubashir Hassan in
  • No description.
  • Guess the code from test cases.

Examples

runningAthlete(["run", "jump", "run", "jump", "run"], "_|_|_") ➞ "_|_|_"

runningAthlete(["run", "jump", "run", "run", "run"], "_|_|_") ➞ "_|_/_"

runningAthlete(["jump", "jump", "jump", "jump", "jump"], "_|_|_") ➞ "x|x|x"

runningAthlete(["run", "run", "run", "run", "run"], "_|_|_") ➞ "_/_/_"

Notes

N/A

Watch a quick demo on how Edabit works.