Our great sponsors
-
AdventOfCode-Day7-SpaceAnalyser
C# .NET Core console app that solves the AdventOfCode Day 7 - Space Analyser puzzle.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I've been at this for hours now and I've finally given up and took a look at solution thread. I've got it working with the help of this solution that I've found was very similar to my approach, but I can't wrap my head around why is it working.
My code was also similar to yours but in Kotlin, see lines 49-53. Although to solve, I did a DFS from the 'root' Dir object rather than keeping a flattened structure of all the dirs in a single list.
NOTE:
The number of mentions on this list indicates mentions on common posts plus user suggested alternatives.
Hence, a higher number means a more popular project.