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.
If something is just pure math with only arbitrary coding value, there needs to be more than just a tag stating math. Put a note in the kata that says it's ALL about math. The tags on this were garbage.
Sure. But when that happens you also have people you can discuss the issues with to clarify things.
Did you differentiate the list elements?
Not broken. The code could use adjustment. Your second return isn't going to run at all, so it's best to remove it - also, don't hardcode the return or the function won't be reliable. You're also not returning a type for the kata but an integer. If you change counter to reflect a list and then iterate through sheep, appending what is iterated through it, you can cut down on your code length and then configure the appropriate return. Boolean is good.
You're a saint. It works now. Thank you. Dumbest mistake ever.
Check for
[]
at the start of function and return early :PThat's what I'm having trouble figuring out. I can't get it to return []. I know I'm probably missing something obvious, but it's driving me nuts.
If the list is empty, you should return
[]
, not[0, 0]
(that's what it says in description)Fixed the list issue, but now it won't check out on the last test where 0 returns []?
Help? I keep getting a tuple instead of a list for my result. Everything else returns fine and the integers pulled out are accurate.