Remix.run Logo
▲ argee a day ago

That's how you do it right? It's a BFS with 4 being the max depth, and you print whatever numbers in the problem set which you didn't find.

▲twoodfin 21 hours ago | parent [-]

Given the problems ITA solved, thinking about the question that way makes perfect sense.