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.
It's an approximation. e+16 means 16 digits, which is about as much as floats can handle. For bigger numbers, you will be losing precision.
Open up a REPL, and try something like 2 == 2.000000001. They are not the same.
Take the hint... don't use floats at all!
the thing is that when i convert 4.534524725984957e in a calcoulatorsoup.com it returns the expected value of 45345247259849570
That means you are using float division somewhere, instead of integer division.
I have a problem here with the last test in python...
it seems that i cannot find a correct way to suppress the scientific notation that python returns for large numbers.
It seems that the suppression of 4.534524725984957e+16 is 45345247259849568.0 which should be 45345247259849570.
as i understood, s can be empy if both part1 and part2 are empty
This comment is hidden because it contains spoiler information about the solution
Print the input: https://docs.codewars.com/training/troubleshooting/#print-input
This comment is hidden because it contains spoiler information about the solution
What does your solution return for
up_array([])
? It should returnNone
.You are returning arrays with some leading zeros, you need to remove them. The first array is your returned array, the 2nd is expected one. You could print the input to console to see which test fails, and where.
For more general tips, see: https://docs.codewars.com/training/troubleshooting
hello there,
i made an attempt on this problem but the terminal returned some weird stuff like:
[0, 1] should equal [1]
[0,0,0,1,0,0,1] should equal [1,0,01]
..
whats the problem?