$ cat writeup.md…
$ cat writeup.md…
HackTheBox
Connection: `nc 154.57.164.65 30945`
$ cat /etc/rate-limit
Rate limit reached (20 reads/hour per IP). Showing preview only — full content returns at the next hour roll-over.
"On your way to the vault, you decide to follow the underground tunnels, a vast and complicated network of paths used by early humans before the great war. From your previous hack, you already have a map of the tunnels, along with information like distances between sections of the tunnels. While you were studying it to figure your path, a wild super mutant behemoth came behind you and started attacking. Without a second thought, you run into the tunnel, but the behemoth came running inside as well. Can you use your extensive knowledge of the underground tunnels to reach your destination fast and outrun the behemoth?"
Connection: nc 154.57.164.65 30945
Connecting to the server revealed the following protocol:
i x j (2 <= i,j <= 100) and a flat list of numbers representing the gridThe challenge name "Dynamic Paths" directly hints at Dynamic Programming. This is a classic minimum path sum problem (equivalent to LeetCode #64):
m x n grid of non-negative integersClassic 2D DP with recurrence:
...
$ grep --similar