Ryan is an engineer in the Sacramento Area with a focus in Python, Ruby, and Rust. Bash/Python Exercism mentor. Coding, physics, calculus, music, woodworking. Looking for work!
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.