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.
I believe it is better to change 'i' into '_' since 'i' is not used after again.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I'm still new to slicing in python. This solution has a couple great examples. Thank you. I appreciate it.
This comment is hidden because it contains spoiler information about the solution
you will know later to never change the inputs given.incase u need to then make a copy of them
The res variable is unnecessary I think since the signature variable can definitely be used for the tribonnaci operation and for the return with some rejigging
Beautiful. Any suggestions(anyone) on getting better at thinking more like this. Having some mental blocks lately.
bruhhhh why i didnt think like this
Oh God, this is what I wanted to do, but couldn't work my way towards a solution.
Great job :)
This comment is hidden because it contains spoiler information about the solution
That's in the kata's description, so (1, 1, 10) is not a valid input
if you want to get prime numbers with 1 gap between 1 and 10 ( "gap(1, 1, 10)" ) it should return [2,3] but it will return [1,2] and 1 is not a prime number. So you should add another verification in the isPrime function whereas if i == 1 return false
Why have a variable for size when you are only useing it in your code once?
TIL theres a built-in sum function.
I'm new to Python...
Loading more items...