Skip to content
Onsite

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

Run checks the 3 visible tests, Submit all 8.