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.
should there be any varaibles in the init section
This comment is hidden because it contains spoiler information about the solution
For the first test case that has 5 terms, I am getting different answers to the 2nd and 3rd median values. It looks like the second median is 32, and the third median is 34, which is the 4th terms in each of their lists. Shouldn't the median be the 3rd sorted term in a 5 term list?
Hi @ChichoZeDo - if you'd like a little hint: forget about coding/modules/packages/loops/etc. for now, and just think about how you could solve this problem in the real world - maybe if the board were printed on a piece of paper for example.
Thanks! Approved, and noted for the change in description.
There is a way to nest 2 loops to get it ro pass. There is a clue in the 40000 N test case set description.
maybe dont use loops at all - i tried to do it with one loop and it timed out
Why couldn't you?
can we use numpy?
i got it, thanks a lot. Now im tryna solve problem with time out :)
LC translation
This translation changes the description ( LC needs some extra information ).
Try reading other comments.
Hi Akar-0, thank you for your advise. I have just little expirience in coding and so far I only found the solutions by using nested loops, but allof them are time out, could you share a hint?
ìtertools.product
does fundamentally the same as a nested loop. This won't work.Hi There!, I found a solution for this Kata using "product" from itertools package but it is also time out, please help!
Loading more items...