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.
map() is Array method, you are trying to use it with number.
It's just recursion, first return calls the same function while changing the argument, but in this case it looks redundant, you can achieve same results with simple loop. Second return just returns value when you reached your condition and don't need to make more calls.
Issue
tag is for the issues with a kata, such as broken test cases, incorrect descriptions etc. Next time please post aQuestion
.spoiler
flag, it is a guesswork to try to help you. Looking how there is noperformance
tag and my first naive solution passed in 2500 ms, my guess is you got infinite loop somewhere in your code.256 in binary form is 100000000. When you place "ab" in the end as in example, all is mitigated by 0's. 32 is 100000, so you actually will get 6th letter from the end of "ctmdpt", which is "c".
The function accepts an integer and returns an integer.
returns
This comment is hidden because it contains spoiler information about the solution
Your code always returns value after first iteration. You can easily see that if you add one print().
It's a linker error. It looks like default function name is
digitize
and that name is used in preloaded code for tests, linker can't find it. Most likely you changed the name of the function.We will consider a, e, i, o, u as vowels for this Kata (but not y).
Look here for code formatting.
For all we know user can enter 1000000. But kata got clear constraints
1 <= month <= 12
.It fails because attempt gives you extra tests. You do get negative argument in your .Remove() in some test cases, error doesn't lie. To say more is to solve it completely for you.
Not issue with a kata. Error tells you exactly what happened. You used .Remove() method with argument that is less than zero. Just print your argument with input and see what happened.
Planet Earth. English is not my first language, but i don't see any outrageous logical falacies in my post.
One of the best kata I've ever seen. The problem is easy to understand, but writing a concise and readable solution can definitely take some time and practice.
Loading more items...