in this case [] , why the correct output is 1? I think it should be 0.
As the problem states: If at ANY POINT the health drops to 0 or below, the knight will die. Surely you won't send a dead knight into the dungeon, will you?
Go play some video games, then you will know. :)
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.