The code is still valid either way.The prompt says: "Return true if he survives"
If he has 1000 bullets against zero dragons, he still survives. If he has 1 against zero, he survives. If he has zero bullets and is going against zero dragons, he still survives.
The code is still valid either way.The prompt says: "Return true if he survives"
If he has 1000 bullets against zero dragons, he still survives. If he has 1 against zero, he survives. If he has zero bullets and is going against zero dragons, he still survives.
yea, but there are zero dragons to kill, so you don't need any bullets.
This comment is hidden because it contains spoiler information about the solution