Cube and Square
EasyP3Coding
Return true if n cubed is strictly greater than m squared, otherwise false. Remember that the cube of a negative number is negative.
Example 1
- Input
- n = 3, m = 5
- Output
- true
Example 2
- Input
- n = 2, m = 3
- Output
- false
Example 3
- Input
- n = 0, m = 0
- Output
- false
Constraints
- -10^5 <= n, m <= 10^5
Hints
Give it a real attempt first. Run shows which examples fail.
Saved automatically
Run checks the 3 visible tests, Submit all 8. ⌘Enter runs, ⌘⇧Enter submits.