Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Counter solution in Clear category for Follow Instructions by rodka81
from collections import Counter
def follow(instructions):
c = Counter(instructions)
return (c['r'] - c['l'], c['f'] - c['b'])
Sept. 24, 2018