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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
@ZED.CWT, cryptic solution as usual haha :)
This comment is hidden because it contains spoiler information about the solution
Hey, care to explain your solution? I really like how short and concise it is compared to mine lmao.
Goddamit! My solution is overcomplicated :(
Why did you include iterator???
I love how your code always has these random variable names (E, V, Q etc) lol
Hi,
https://www.wolframalpha.com/input/?i=(7%5E(6%5E(21)))+mod+10
Edit: Provided a naive implementation (not that my algorithm was that efficient anyways :P)
This comment is hidden because it contains spoiler information about the solution
Not too surprising for a worst case O(n^2) algorithm...
oooooo interesting!
Hi, just looking for some clarification:
"Note that if node 0 is connected to node 1, node 1 is also connected to node 0."
Based on that statement, I can see that
isTree([[1],[0]]) is True
, but whyisTree([[1,2],[0,2],[1,2]]) is False
?Node 1 and node 0 are connected, and if
isTree([[1],[0]]) is True
, why isn't node 0 and node 1 in[[1,2],[0,2],[1,2]]
considered to be connected?Nice!
Loading more items...