/technology
+⧖>Advent of Code is an Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like. People use them as a speed contest, interview prep, company training, university coursework, practice problems, or to challenge each other. https://adventofcode.com/ /g/ leaderboard join code: 224303-2c132471 anonymous-only leaderboard: 383378-dd1e2041 22 hours and 37 minutes remain.
>Advent of Code is an Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like. People use them as a speed contest, interview prep, company training, university coursework, practice problems, or to challenge each other. https://adventofcode.com/⧉ /g/ leaderboard join code: 224303-2c132471 anonymous-only leaderboard: 383378-dd1e2041 22 hours and 37 minutes remain.Obviously this problem is trivial to do in linear time but it might be interesting to do it in better than linear space. Maybe you'd have to use a frequency estimating algorithm to do it? That can get you part 1 at least, but part 2 might be weird unless you make assumptions about the input
⧖expiring0/1 kept2d ago
⏱ 2d 👍 0
⬆ upvote 0
/technology
trying
closest
needs