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.
413/414, attempted like 20 more times and by sheer luck it made it through.
411 / 414
jnz
just jumps to instruction, ifvalue != 0
and after that program continues.in result we should return
{"a": 1, "b": 8}
Great kata, and I'm glad, that my solution can work with really huge numbers, f.e 10^43. Thx!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
How it works?
I think you can represent python code in js :)
This comment is hidden because it contains spoiler information about the solution
I think it would be good to have a worked example. I tried reasoning out the problem but I still can't figure out how the closer/further info affects the range. I do not even know what a "diapason" is.
fixed this problem by float numbers (now 1601.5 - 1467 = 134.5, 1736 - 1601.5 = 134.5 -> equal, in this way closer or further have no sense)
thx for advice, fixed
added in description
It is not mentioned that the returned frequency range should also be integers, only the inputs.
Actual and expected are swapped in random tests
Wrong results in random tests, .eg.:
Expected result:
(1601, 4000)
, but1601-1467 = 134
,1736-1601 = 135
-> 1736 is not closer.Loading more items...