Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

TheRedRover Apr 4th, 2020 126 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. object Cube {
  2. def helper(sum:BigInt,m:Long,n:BigInt):BigInt=
  3.     {
  4.       if(sum+(n*n*n)<m) helper(sum+(n*n*n),m,n+1)
  5.       else if (m==sum+(n*n*n)) n
  6.       else -1
  7.     }
  8.     def findNb(m: Long):BigInt =
  9.       helper(0,m,1)
  10. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top