I'm a Sr. Software Engineer at Flashpoint. I specialize in Python and Go, building functional, practical, and maintainable web systems leveraging Kubernetes and the cloud. Blog opinions are my own.
It's in Python, and it's not pretty, but I'm busy and it works and keeps me on track, so I'm counting that as a win. Just got to get through this week of finals and then I'll have more time :) Part two takes a while, but not like a "get up and get some coffee" while, so I'll take it.
"""Day 15: Rambunctions Recitation
Help the elves play a memory game where they remember which numbers
they said at which timestep.
It's not pretty, but it gets the job done, and I'm busy.
"""history=dict()starting=list(reversed([9,3,1,0,8,4]))foriinrange(1,30000001):ifstarting:current=starting.pop()eliffirst:current=0else:current=time_since_lastfirst=(currentnotinhistory)ifnotfirst:time_since_last=i-history[current]history[current]=iprint(current)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
It's in Python, and it's not pretty, but I'm busy and it works and keeps me on track, so I'm counting that as a win. Just got to get through this week of finals and then I'll have more time :) Part two takes a while, but not like a "get up and get some coffee" while, so I'll take it.