Expand description
§Custom Customs
Part one is solved with a brute force search over every possible pair in the preamble, using a
sliding window to advance to each number. To allow testing with the sample data that uses a
preamble of 5 but preserve compile time optimization the decrypt
method is
const generic
in the size of the preamble.
Part two uses a sliding search over a variable size window of the input.
Functions§
Type Aliases§
- Result 🔒