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 took greater one hour to resolve this kata but still can't pass by. Maybe my mind is bad with MATH.
If there is 100 languages, you will have 100 if command, are u serious?
Maybe my level is really at 7 kyu :((
I don't know how I'm bad at algorithm but I think this kata should be 6 kyu level... :((
What if we have to print 100 lines ? :|
Nice story about Basic Encryption algorithm. I've finished this with for loop and some condition commands. Regex was more advanced!
Personally, I like your approach method what based on something real-world!
Keep going. Thanks a lot!
A spelling error:
We can see, str.index("e") equals str.lastIndexOf("e"), because there is only one "e" in str
Should:
str.indexOf("e")
^^
Yep, my mistake. I didn't read description carefully.
I've finished this kata. Thanks for your support! ;)
This comment is hidden because it contains spoiler information about the solution
Can you explain me why ?
https://dl.dropboxusercontent.com/u/2037650/Screenshot%202016-09-15%2009.15.49.png
I don't understand why the first element wasn't cut? This is exception?
This kata is not easy! I've lost 60 minutes but still can't resolve it! Actually, I finished all test case except a test case with very long string.
Frustrated! :(
To create an object that contains 2 properties: number and occurence, I've done with:
var count = {};
A.forEach(function(el){
count[el] = count[el] + 1 || 1;
});
More simple? Right?
This solution was quite insance, but PERFECT and CLEVER. Nice job buddy :)
I think you've had the strong knowledge about Regular expression ;) Nice solution!
maybe you need add {1} to your expression ^^
Loading more items...