We use hashmap as a database where we write the key and value. The key is the unique identifier of the entry, the value will be the original URL. To ensure the uniqueness of the short link, we will use a unique identifier, for example, the number of the record in the database. In our case, this is a random integer field that is used to convert the original link to a shortened link. The reverse process is to get an integer (our identifier) from the shortened URL and search for that identifier in the hash map to get the original link.
-
Notifications
You must be signed in to change notification settings - Fork 0
ArAkAru/UrlShortener
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published