Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Follow Instructions by melitaele
from typing import Tuple
def follow(instructions: str) -> Tuple[int, int]:
return ((instructions.count('r') - instructions.count('l')),
(instructions.count('f') - instructions.count('b')))
July 9, 2021