You must cross N caves in sequence. Each cave contains M monsters. You have an initial power S. For each cave i, you choose exactly one monster j. To defeat monster j, you must have S >= P[i][j]…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.