Expand description
§Trash Compactor
Processing the input from right to left means that we can use the operator on the bottom row to split blocks of numbers and don’t need special-case handling for the end of the input. Blocks are the same height but can be different widths.
Both parts are computed together. Each block is converted into a set of numbers twice, in rows from top to bottom and columns from left to right. Leading and trailing spaces are ignored.
For performance, we avoid storing the numbers in an intermediate vec and just use the
iterators directly.
Functions§
Type Aliases§
- Input 🔒