Great kata !
Thanks!
Tests don't work:
Traceback (most recent call last): File "main.py", line 25, in <module> testing(cube) File "main.py", line 10, in testing sequence = make_white_cross_on_B(initial_state) NameError: name 'make_white_cross_on_B' is not defined
I've forked the Rust translation in order to update it to Rust 1.49 and updated rand::Rng::gen_range to its new signature that takes a std::ops::Range.
rand::Rng::gen_range
std::ops::Range
It also should be stated in the description that the order of numbers in the answer is important
I believe in the description it should be "(k==0)...(k==1)...(k==2)" instead of "(k==1)...(k==2)...(k==3)"
what is the significance of (arr[i-1] < i - 1) here?
sorted will be delegeted to Arrays.sort() here and Arrays.sort() is O(nlogn) which is more than O(4n)
I actually learned something new. Huh...still a pain in the ass though :)
This comment is hidden because it contains spoiler information about the solution
This only means your code throws an error for one case and so no result. You must have a bad use of log in your code (something like n.log).
You can safely assume if it can be up to 2e6, it can be down to -2e6.
2e6
-2e6
golang bug: corrupted tests.
Thanks for the compliment!)
In the Performance section I get Should not throw any exceptions inside timeout: AttributeError("'int' object has no attribute 'log'",)
Should not throw any exceptions inside timeout: AttributeError("'int' object has no attribute 'log'",)
But my tests complete in under 3ms and the performance section completed in under 60ms. What could be the source of this error?
Great kata !
Thanks!
Tests don't work:
I've forked the Rust translation in order to update it to Rust 1.49 and updated
rand::Rng::gen_range
to its new signature that takes astd::ops::Range
.It also should be stated in the description that the order of numbers in the answer is important
I believe in the description it should be "(k==0)...(k==1)...(k==2)" instead of "(k==1)...(k==2)...(k==3)"
what is the significance of (arr[i-1] < i - 1) here?
sorted will be delegeted to Arrays.sort() here
and Arrays.sort() is O(nlogn) which is more than
O(4n)
I actually learned something new. Huh...still a pain in the ass though :)
This comment is hidden because it contains spoiler information about the solution
This only means your code throws an error for one case and so no result. You must have a bad use of log in your code (something like n.log).
You can safely assume if it can be up to
2e6
, it can be down to-2e6
.golang bug: corrupted tests.
PRONOUNS: []
SENTENCE: angry unhappy swan
Thanks for the compliment!)
In the Performance section I get
Should not throw any exceptions inside timeout: AttributeError("'int' object has no attribute 'log'",)
But my tests complete in under 3ms and the performance section completed in under 60ms. What could be the source of this error?
Loading more items...