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.
1 is not a prime number
.
fixed
.
The biggest problem I encountered in this kata is
import
I need some time to think about this problem
Acutally, I haven't any good idea to solve this problem. The only solution I can think of is to remove the restriction
I disabled all
__...__
at least I think its useless in this kata
Banned datetime
tbh, this solution beyond my expectation
All right, I misunderstood of 10 - 100000. Maybe I dont understand how the tree generator works
but this sentence is true
For a inefficiencies solution, this constitutes a 'lucky test'
because I saw that the number of nodes can be extremely large or extremely small. It shouldnt happen (At leastAnyway, good kata. Looking forward to your next kata
Its the result in the large random tests
In the test case, large random test can spawn 10 - 100000 nodes
As you said
For this kata a straightforward approach that computes the maxima and minima is sufficient
For a sufficiently efficient solution, thats no impact
For a inefficiencies solution, this constitutes a 'lucky test'
then, whats the point of large random test(for more submission?
Edit: change the range to 10000 - 100000 can constitute efficiency test, but according to your idea its not required
In big random test, the range of
n
is0 - 1e5
. This can be changed to1e4 - 1e5
to ensure that all generated numbers are large integer.This comment is hidden because it contains spoiler information about the solution
Tysm for helping, you are nice
Got timed out in the
O(log(n)^3)
(python) methodI forgot to replace BigInteger method ;/
= given
-ne
inputFixed. Can you check the test case in python, maybe its wrong.
randint(256, 512)
Thats why I useNext(256, 513)
Loading more items...