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.
Not a kata suggestion. See https://docs.codewars.com/training/troubleshooting#post-discourse.
Please don't post solutions in the discourse. See https://docs.codewars.com/training/troubleshooting#post-discourse.
Well in that case I wouldn't name the variable as "n". It doesn't mean anything and decreases the readability.
"f" would be cool, or better: "friend".
Not a kata suggestion. See https://docs.codewars.com/training/troubleshooting/#post-discourse.
Not a kata suggestion. See https://docs.codewars.com/training/troubleshooting#post-discourse.
Not a kata suggestion. See https://docs.codewars.com/training/troubleshooting#post-discourse.
Not a kata suggestion. See https://docs.codewars.com/training/troubleshooting#post-discourse.
Good job here !
Not a kata issue. See https://docs.codewars.com/training/troubleshooting#post-discourse.
No, your proposed output goes against the specification.
Not a kata suggestion. See https://docs.codewars.com/training/troubleshooting#post-discourse.
Not a kata suggestion. See https://docs.codewars.com/training/troubleshooting#post-discourse.
The first array is your output and the second array is the expected output. If you want to see the input that is causing your solution to fail, you should print it yourself. See https://docs.codewars.com/training/troubleshooting#print-input.
In the future, please use the
Question
label when asking for help. See https://docs.codewars.com/training/troubleshooting#post-discourse.why ;-;
Top-down or bottom-up doesn't matter, there is only one correct answer either way: 1074.
Loading more items...