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.
print the output ~~
It's normal practise use [].someFn .call()/.apply(). If you like save memory, why you chose JS?
Please help.
What do tests mean? What arguments do they receive?
"Single pair of end caps defined - no nesting"
"Multiple pairs of end caps defined - no nesting"
"Single pair of end caps defined - with nesting"
"Multiple pairs of end caps defined - with nesting"
"Multiple open and close caps are same character - with nesting"
Balanced and unbalanced case. I wrote a function that works perfectly and I can't break my function.
When you create kata please write description's tests smarter.
I can't understand next:
Time: 323ms Passed: 33 Failed: 8
Single pair of end caps defined - no nesting
Balanced
✘ Expected: true, instead got: false
Single pair of end caps defined - with nesting
Balanced
✘ Expected: true, instead got: false
✘ Expected: true, instead got: false
✘ Expected: true, instead got: false
Multiple pairs of end caps defined - with nesting
Balanced
✘ Expected: true, instead got: false
✘ Expected: true, instead got: false
Multiple pairs of end caps defined - no nesting
Balanced
✔ Test Passed: Value == true
✘ Expected: true, instead got: false
Multiple open and close caps are same character - with nesting
Balanced
✘ Expected: true, instead got: false
For people who speak English a little hard translate this description. If I see what function receive and what tests want in output I guess how function must work.
@Jonas, JavaScript?
Asked the same question below :) If there would be any relation between the basis and the exponent, the brute-force wouldn't be necessary :(
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Sorry for incorrect mark. Nice kata. Be stronger in algorithms.
This comment is hidden because it contains spoiler information about the solution
I first checked if the number can be diveded by the sum of its digit. But still for 30 it is slow...
Yeah, and that's the brute-force method, which takes a lot of time to execute :(
This comment is hidden because it contains spoiler information about the solution
I think there should be some rule by which we can filter out numbers in a quicker way than brute-force. But I also need to find that.
Is there any relation between numbers and the degree of the power?
Loading more items...