Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
1 Line solution in Speedy category for Follow Instructions by Alex_4444D
from typing import Tuple
def follow(instructions: str) -> Tuple[int, int]:
return instructions.count('r') - instructions.count('l'), instructions.count('f') - instructions.count('b')
Oct. 17, 2021
Comments: