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.
It's hard to tell from the error message, but I can see in your code it will result in an unwanted trailing whitespace.
This is an issue with this kata.
It doesn't support anonymous functions. Try and use the
function cleanString () {}
notation instead..
If you still have troubles, try looking what the bounds are of the numbers that should be exponentiated
Usually, we one can't solve a kata, he tends to think that the kata is the problem. But we should just get better, it's normal to not be able to solve all of them.
Description modified. No offense to anybody and no arrogance but I could not have imagined that one try coding without a bit of mathematical vocabulary knowledge and/or research.
@wilsonteh
I'm glad you had figured it out.
The problem persists because users move on after figuring out by reading the comments. The description should be updated so that users don't need to.
The first post had nothing constructive in it, so please avoid posting comments like that. That's all.
I agree that many kata needs improvements. Just keep in mind that kata are maintained by normal users like yourself and you can help to make them better.
@wilsontech
Please try to be more respectful to other users.
Asking for clarification and suggesting improvements are better ways to fix the problem.
@g964
For "Couldn't understand the first sentence itself."
Maybe some are having trouble understanding what "successive powers of 10" means.
Adding something like the following will probably help:
I can see how this is confusing, but it's difficult to word it. Maybe just present it better?
By the way,
is distracting so I'd suggest removing it.
From Wikipedia:
"A divisibility rule is a shorthand way of determining whether a given integer is divisible by a fixed divisor without performing the division, usually by examining its digits."
This kata gives a mean to know if a number is or is not divisible by 13.
You can read:
https://en.wikipedia.org/wiki/Divisibility_rule#Divisibility_by_13
to see if you have a better understanding.
By the way you don't need to be scornful or insulting when you post even if I can understand your repeated frustation with my kata (if you don't appreciate them, please don't take them). Beside that if you want to mark your post as an issue you should be more explicit by pointing what you don't understand so people can answer with precision.
Can you point what exactly you didn't understood from the description?
Read solo-leveling's or Psychemaster's post below. They explain what that means with more detail.
Understanding a description is unfortunately part of the job. 35044 people passed the kata so it is understandable with a bit of an effort. Could you tell exactly what you don't understand and I will try to help you?
Great, now I can work with this :D Your code is fine except for one important detail you oversaw. Think about how you remove the processed
arr
elements and visualize your algorithm on this example:[-3, 15, 8, -1, 7, -1]
^^ I think you will get this in no time. edit: let me know if you figured this out, I really want you to get something out of this kata!Again, the error message you provided is far to vague, I don't know what's wrong. Post your code (with spoiler flag), so we can look into this.
This comment is hidden because it contains spoiler information about the solution
Loading more items...