← Back to challenges

Running Athlete πŸƒ

PythonHardregexstringslanguage_fundamentalsinterview

Instructions

  • No description.
  • Guess the code from test cases.

Examples

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

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

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

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

Notes

N/A

python3
Loading editor…
⌘ ↡ to run
Walks through the solution with reasoning and edge cases.
Next: You FAILEDPASSED the Exam β†’