| Github | https://github.com/tomribbens |
| Github | https://github.com/tomribbens |
@BrentToderian If you go to edit your profile, where you enter your site, there's a verification code that you can copy.
If you put that link on the website you link to, Mastodon will show it as a verified site. (see my profile for my Github link. This proves that I control both that github account and this mastodon account) This will show people you are the real one behind that site. Doesn't stop others from impersonating you, and you still need to go to someone's profile to actually see it.
@rhgrouls @aconaway I'm sorry, I meant specifically for the parsing of crates, but wasn't clear on that.
You creating effectively three for loops is hurting my brain, I can't comprehend it.
From the Julia I understand from your code, wouldn't replacing your lines 4-7 with the following code work and be clearer?
for line in z[1:end-1]:
for i, crate in enumerate(line[2:4:end]):
!isspace(crate) && push!(stacks[i], crate)
@rhgrouls @aconaway I don't know Julia, so maybe it's the language, but that solution seems overly complicated to me.
My #Python solution is at https://github.com/tomribbens/advent-of-code-tribbe/tree/master/aoc_tribbe/aoc2022
Parsing one line of the crates is lines 19-21, with towers_a setup as a defaultdict earlier on, so I never get an IndexError.