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 envisioned a solution like this:
take the size HashMap<longUrl, shortUrl>, this size will be the ordinal number of the long URL. Through transformation base10to26 I get a short URL.
But with this conversion for the number 17576 in base10 form, I get the number 1000 in base26 form.
This works if you use a larger base(like base62), but it doesn't work for base26.
Please, help me, is this the right solution or I need to use a completely different solution?