Created
June 9, 2018 06:36
-
-
Save harsha-main/702c00922542314ca786c16f291cafc0 to your computer and use it in GitHub Desktop.
Codewars sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static long findNb(long m) { | |
// your code | |
long sum=0; | |
int i=0; | |
while(sum<m){ | |
i++; | |
sum+=i*i*i; | |
} | |
return i; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment