Ad
  • Custom User Avatar

    I think top votes solution is n^2, not n^n
    btw, I love your solution, nlogn is better

  • Custom User Avatar

    oh, that make sense, thanks a lot.
    I will work on it.

  • Custom User Avatar

    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.