Ok you Python-using heathens. What did you think for difficulty this time around?
Post your coding atrocities below.
For those of you who missed the early signups. Feel free to join the leaderboard late (though rankings are based on time).
Ok you Python-using heathens. What did you think for difficulty this time around?
Post your coding atrocities below.
For those of you who missed the early signups. Feel free to join the leaderboard late (though rankings are based on time).
Jump in the discussion.
No email address required.
Regex is king:
Side note: Nim has a nice bit of syntactic sugar for matching regexes:
However, it will only use an existing
matches
array if it's declared in the enclosing scope, not any scopes above it. This means the array would be recreated every loop cycle, making it several times slowerJump in the discussion.
No email address required.
literally, For the first:
For the second:
Got pretty much the same thing, but couldnt figure out how to do a backward regex cause I suck at regex but go off i guess
Jump in the discussion.
No email address required.
More options
Context
Regex is the way, but I completely admit to getting stuck for a minute because I forgot about match consumption and lookahead and all that shit that you tend not to think about from day to day: https://stackoverflow.com/questions/11430863/how-to-find-overlapping-matches-with-a-regexp
Jump in the discussion.
No email address required.
More options
Context
More options
Context