Not sure if you should use N-1 or N-2? Let's practice how to use indices in algorithmic problems.
CF Football https://codeforces.com/problemset/pro...
CSES Repetitions https://cses.fi/problemset/task/1069
LC Repeated DNA Seq https://leetcode.com/problems/repeate...
0:00 3 in a row
2:46 K in a row
4:34 code
7:49 homework
I stream on Twitch: / errichto