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.
Easy to read, but it's O(n^2) and there's an even shorter solution that's O(n).
This comment is hidden because it contains spoiler information about the solution
daww the heart is cute <3
nice, really small and neat result with no imports and still pretty fast
looks super neat, +points for short written solution with no imports!
This comment is hidden because it contains spoiler information about the solution
looks neat but O(n**3) doesn't look so neat
oops forgot to delete the getFactors function before submitting lol
this is a bit wasteful since you calculate a sequence of fibonacci numbers for each fibonacci number <= n. you can calculate the whole fib seq <= n first and then iterate through it after, so you only calculate the fib seq once
Why would you ever use this? It's less readable, slower and takes longer to type than the standard python way
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
How does this ensure that the letters come out in the right order?
I get a missing substring error here but a normal output with the same code in my own program. Is that a thing?
So clever to return two slices instead of a full variable