long url with encoding??for example a url is 200 characters and we need to shorten it to less than 64 characters. any help would be really apretiated
Explain what the link is and why you have to shorten it
It's pretty easy. You don't encode the URL, instead all you have to do is generate a random string of 5-8 characters and then store it, along with the URL in a database. When people visit a route with that random string just forward them to the URL
Обсуждают сегодня