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 agree. That was a genius move!
You are a genius.
Thank you, I will never think about that
This comment is hidden because it contains spoiler information about the solution
This is passing the first test so it should be ok.
And I also made test on ide.
I don't understand why the last test have an issue.
Your URL must not be longer than 13 but it can be 10, 11, 12 or 13 long.
You can calculate the possibilities:
26^1+26^2+26^3+26^4 which is greater than 475000
:)
Hello, I love this problem.
But I have a question about 26^4 is less than 475000.
In my solution, I use a global variable
index
to express short url,but the random test generate 475000 unique url and cause conflict, could you give me some help?
ps: poor English, sorry about that.
Your code isn't handling duplicates correctly.
Code updated. No time out anymore.
But I have an issue with the random test.
Everytimes, I get expected shortURL A equal to B;
I get a lot of test ok.
I test also on Javascript tutor.
Did several test and my code is working.
Some one else facing issue with the random test in javascript ?
That's what I was thinking about but didn't know if it was a good way of working.
Thank you for your answer :D
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
In this case the regular expression will ignore the underscore in the return value, since it cannot be paired with another character.
But what if the length of the string is a even number?
awesome O.O, good job. I learned something thank you
Just go for 'Attempt'.
Loading more items...