Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Finally it works!
Thank you for your feedback and for your kata.
I think my problem where with big integers!
Ok!
Now I pass the -1 to -50 but I fail on the random.
Thank you I am going to see why!
Ok bkaes!
I think I am no stuck, I want to know if the value that gives as a solution -45537549124 is -51, like this test:
NaMe613, I pass 57 tests before the first fail.
The test that fails says:
Thank you for your feedback.
Thanks for your answer.
The test that says failed is this one: Test.assertEquals(lucasnum(-51), -45537549124) ?
-50 to -1
Expected: -45537549124, instead got: 28143753123
Which other number can bring me the -45537549124 if is not the -51 ?
I try with my own test:
Test.assertEquals(lucasnum(-51), -45537549124)
And works...
Thank you for your feedback
Hi,
I have tried the tests but I got failed message:
-50 to -1
Expected: -45537549124, instead got: 28143753123
Test Passed: Value == 28143753123
Test Passed: Value == -17393796001
Test Passed: Value == 10749957122
I have passed my own tests.
Are these tests ok?
Test.assertEquals(lucasnum(-51), -45537549124)
Test.assertEquals(lucasnum(-50), 28143753123)
Test.assertEquals(lucasnum(-49), -17393796001)
Test.assertEquals(lucasnum(-48), 10749957122)
Test.assertEquals(lucasnum(-47), -6643838879)
Test.assertEquals(lucasnum(-46), 4106118243)
Test.assertEquals(lucasnum(-45), -2537720636)
Test.assertEquals(lucasnum(-44), 1568397607)
Test.assertEquals(lucasnum(-43), -969323029)
Test.assertEquals(lucasnum(-42), 599074578)
Test.assertEquals(lucasnum(-41), -370248451)
Test.assertEquals(lucasnum(-40), 228826127)
Test.assertEquals(lucasnum(-39), -141422324)
Test.assertEquals(lucasnum(-38), 87403803)
Test.assertEquals(lucasnum(-37), -54018521)
Test.assertEquals(lucasnum(-36), 33385282)
Test.assertEquals(lucasnum(-35), -20633239)
Test.assertEquals(lucasnum(-34), 12752043)
Test.assertEquals(lucasnum(-33), -7881196)
Test.assertEquals(lucasnum(-32), 4870847)
Test.assertEquals(lucasnum(-31), -3010349)
Test.assertEquals(lucasnum(-30), 1860498)
Test.assertEquals(lucasnum(-29), -1149851)
Test.assertEquals(lucasnum(-28), 710647)
Test.assertEquals(lucasnum(-27), -439204)
Test.assertEquals(lucasnum(-26), 271443)
Test.assertEquals(lucasnum(-25), -167761)
Test.assertEquals(lucasnum(-24), 103682)
Test.assertEquals(lucasnum(-23), -64079)
Test.assertEquals(lucasnum(-22), 39603)
Test.assertEquals(lucasnum(-21), -24476)
Test.assertEquals(lucasnum(-20), 15127)
Test.assertEquals(lucasnum(-19), -9349)
Test.assertEquals(lucasnum(-18), 5778)
Test.assertEquals(lucasnum(-17), -3571)
Test.assertEquals(lucasnum(-16), 2207)
Test.assertEquals(lucasnum(-15), -1364)
Test.assertEquals(lucasnum(-14), 843)
Test.assertEquals(lucasnum(-13), -521)
Test.assertEquals(lucasnum(-12), 322)
Test.assertEquals(lucasnum(-11), -199)
Test.assertEquals(lucasnum(-10), 123)
Test.assertEquals(lucasnum(-9), -76)
Test.assertEquals(lucasnum(-8), 47)
Test.assertEquals(lucasnum(-7), -29)
Test.assertEquals(lucasnum(-6), 18)
Test.assertEquals(lucasnum(-5), -11)
Test.assertEquals(lucasnum(-4), 7)
Test.assertEquals(lucasnum(-3), -4)
Test.assertEquals(lucasnum(-2), 3)
Test.assertEquals(lucasnum(-1), -1)