Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Read this: https://www.geeksforgeeks.org/difference-between-and-equals-method-in-java/
Thank you sir. do you know why it fails with == if they are essentially the same thing?
yes the while loop will break if the f0 is below or equal to 0 or if n becomes 0
or both so if the loop breaks by n becoming 0 then still the f0 is larger than 0 so true else if f0 becomes 0 or below the loop breaks and then if n is 0 returns true else false.
This comment is hidden because it contains spoiler information about the solution