Hello. Before diving into this article, first, we need to know few things.
HashMap is a wonderful data structure that stores data in the form of Key-Value pairs that provide insert, update, retrieve, and delete operations in O(1) time.
HashMap has one limitation that it can have only one key. But wait. Why do we need multiple keys for a single value? Let us look at an example.
Suppose we want to look up the marks of a student by Student, Exam, and Subject. The typical solution is to create a Nested Map like below.
Let’s say we want to create an Employee class that has the below mandatory and optional attributes.
The Employee class and its constructor looks like below
I was recently creating my responsive portfolio website and was testing it on my mobile. I wanted to inspect few elements. I thought there is no way to do that. But I came to know that there is a way. In this article, we will see how to debug a website on a mobile device.
In modern years, many Digital Creators like Youtubers, Blog Writers, Ghost Writers have emerged a lot. There are so many ways to monetize their content. For example, Youtube has a Patreon option where subscribers can donate money to the Youtubers. But there are very limited options for other content creators to get support from the audience.
Here comes the lifesaver, Buy Me a Coffee. It offers seamless integration with our portfolio sites, share on Twitter and Facebook, etc. In this article, we will be creating a Buy Me a Coffee account and integrate it with the portfolio site.
First, we will start by adding an HTML file with a canvas tag
Python is one of the easiest languages to learn. I got attracted by Python during my college because of its simplicity and ease of learning. Though it is simple to learn, it is one of the powerful languages too. It is quite famous for complex tasks like Machine Learning, Image Processing, NLP, etc.
In this article, we will be looking into the 10 hidden and coolest features of python which many people (I was one of them 😉) may not have heard of.
We all knew about the if-else in programming. …
This is the continuation of the previous article where we saw 5 coolest features of Python. Please do read it here if you haven’t read it. In this article, we will be seeing another 5 coolest features of Python
Dictionary Comprehension is similar to List Comprehension. Here we use dictionaries instead of lists.
Consider we want to generate the squares of N numbers in the form of a dictionary, where the key…
Last year, I started writing blogs on Medium. During that time I was searching for ways to create my own site for listing my blogs. All I ended up with was setting up a Wordpress site which has both free and premium version. Personally, I did not like the themes provided in the free version. So, I created my own portfolio site, where I added the blogs that I wrote on Medium.
Recently, I came to know about Hashnode, a simple and easy platform to set up a blog site in minutes. You can even customize your hashnode site to…
Host static websites with a custom domain and free SSL certificate
Hello everyone. In this article, we will host my personal portfolio site using Github Pages, map a custom domain name and add a free SSL certificate.