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.
yes
I have refactored code multiple times yet it shows timeout in javascript. How is that without iterating in nested loops one can solve this(just a doubt). Can anyone give me some insights or possible reference.
Awesome thank you for the hint. Much appreciated.
Nested loops like that won't work. Your code should work in linear time.
This comment is hidden because it contains spoiler information about the solution
Do you have to optimize the lcm calculation? my code times out but passes the basic test cases
ohh!! ok cool. thank you
how do you slice into the list with non interger indices.
dont you get the following error:
TypeError: list indices must be integers or slices, not float