What is Nostr?
Jonathan Carroll /
npub1kl6…gf30
2024-12-02 10:23:26
in reply to nevent1q…q27a

Jonathan Carroll on Nostr: nprofile1q…pqxwu I had forgotten about InvertedIndices and intially tried to use a ...

nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpqh7xyrkhkm0wt6ycl4ttnfvtyyhk4tm5ku3kgxjld8j55cy8penwqppqxwu (nprofile…qxwu) I had forgotten about InvertedIndices and intially tried to use a negative index 🙄

I ended up using essentially

map(i -> deleteat!(deepcopy(x), i), eachindex(x))

with no considerations of performance or complexity, whatsoever.

https://github.com/jonocarroll/advent-of-code/blob/main/2024%2FJulia%2Fday02.jl#L13-L15
Author Public Key
npub1kl6fnrhma07s6e67qecufyhhvyx8emckuase0x9u0emprjltzrrqeggf30