In hindsight, this was probably one of the most important classes that I took in college.
@ethanschoonover Pleroma/Akkoma’s frontend is one of the few that does allow that sort of filtering. I’ve tried a few others and immediately discarded them since they don’t have that support.
# p ARGF.read.split("\n\n").map { _1.each_line.map(&:to_i).sum }.max
p ARGF.read.split("\n\n").map { _1.each_line.map(&:to_i).sum }.sort[-3..-1].sum
I always find the code for my leaderboarding attempts (especially the successful ones) to be an interesting look into both my initial instincts for breaking down a problem, as well as which parts of Ruby I use to solve it.