Thank you to everyone who attended this year's Harker Programming Invitational (HPI)! Novice and Advanced problems have been uploaded to the Gym for upsolving.
Harker
Pretty straightforward: most languages have a standard library function for finding a given substring in a string, so you can just use that.
Example code (Team Aarav)
String Runs
Observe that when concatening strings $$$a$$$ and $$$b$$$, $$$|f(a + b)| = |f(a)| + |f(b)|$$$ unless the last character of $$$a$$$ equals the first character of $$$b$$$, in which case $$$|f(a + b)| = |f(a)| + |f(b)| - 1$$$. Therefore, for each string $$$w_i$$$, we only need to maintain three values: its first character, last character, and $$$|f(w_i)|$$$.
Example code (eevee0)
Reverse Suffix
Hint 1
Hint 2
Solution
Example code (Team Aarav)
Regina's Task
Hint
Solution
Example code (shsh)



