Project Euler #142: Perfect Square Collection

Sort by

recency

|

13 Discussions

|

  • + 0 comments

    can u provide code for this question and explain the code brifely

  • + 0 comments

    I am bit confused with the problem statements.

  • + 0 comments

    Passed all test cases except #7 and #8.. Anybody have any tips about why this might be? To me my algorithm works when N>=3000, but apparently not?

    It's not a timeout issue as I'm returning answers fast.

  • + 1 comment

    error: no suitable method found for valueOf(BigInteger)

    for (BigInteger x =BigInteger.valueOf(1234567890);x.compareTo(BigInteger.ZERO) > 0;x=x.subtract(BigInteger.ONE)) { for (BigInteger y =BigInteger.valueOf(x);y.compareTo(BigInteger.ZERO) > 0;y = y.subtract(BigInteger.ONE)) { for (BigInteger z = BigInteger.valueOf(y); z.compareTo(BigInteger.ZERO) > 0; z = z.subtract(BigInteger.ONE))

    pls help!!!

  • + 1 comment

    can we use bisection search to find the numbers ?