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 <= 9
- why 9?My guess is this is causing inifinite loop.
Try printing value of n at the begining of while loop.
I changed the description of the examples. I hope this helps.
Thank you.
It teaches the most important thing in programing.
Think before writing a single line of code.
There are always at least 2 chairs. And the are all empty at start.
I don't know what the second argument in your function does.
Try solving this on a piece of paper for small number of chairs. Maybe you'll find some characteristic that will help you solve this problem.
this is fine, but codewars wont let me approve it, because I made changes (minor) to the description, and now you need to merge it before I can approve. Sorry :) didn't know it works this way.
this is fine, but codewars wont let me approve it, because I made changes (minor) to the description, and now you need to merge it before I can approve. Sorry :) didn't know it works this way.
this is fine, but codewars wont let me approve it, because I made changes (minor) to the description, and now you need to merge it before I can approve. Sorry :) didn't know it works this way.
this is fine, but codewars wont let me approve it, because I made changes (minor) to the description, and now you need to merge it before I can approve. Sorry :) didn't know it works this way.
this is fine, but codewars wont let me approve it, because I made changes (minor) to the description, and now you need to merge it before I can approve. Sorry :) didn't know it works this way.
Description cannot be approved, recent changes from related record must be merged first.
I did changes to my description. Can u pls merge? I will approve after
I have haters? thats cool.
thx for the snippet
I don't know this language / syntax.
Pls tell me - the result is always
n - 1
right?that one worked.
Loading more items...