Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
collections.Counter solution in Speedy category for Follow Instructions by Leonix
import collections
def follow(instructions):
c = collections.Counter(instructions)
return (c['r'] - c['l'], c['f'] - c['b'])
April 7, 2019
Comments: