Aditya Chatterjee's Blog, page 179
February 10, 2021
footer tag in HTML
HTML is the standard markup language for creating websites and web pages that can be read by web browsers. HTML is organized into sections that give each section some meaning. Just like a books page can be organized as having a heading with a title and some notes, a body with some paragraphs and a footer with some information, HTML tries to organise in a similar way. The "footer" tag is one such important html tag.
...February 9, 2021
Defining 2D array in Python
In this article, we have explored the different ways of defining a 2D array in Python. We have explored three approaches:
Creating a List of ArraysCreating a List of ListsCreating 2D array using numpySome terminologies in Python:
Array: An array is a collection of homogeneous elements (i.e. belonging to the same data type) that are stored in contiguous memory locations. In Python, there is a module ‘array’ that needs to be imported to declare/use arrays.
List: A list in Python is collection...
Introduction to Ruby Programming Language

Ruby is an interpreted, high-level, general-purpose programming language that was designed and developed by Yukihiro "Matz" Matsumoto in the mid-1990s.
Some of it's features include:
dynamic typing and duck typingmultiple paradigms support(object-oriented/procedural/functional)reflective typinggarbage collectioncentralized package management through Ruby Gemsexception handlingThe inspirations behind Ruby were Perl, Smalltalk, Ada, BASIC, and Lisp.
SemanticsRuby has taken it's semantics,...
Applications of Linked list

In this article, we have covered the applications of Linked List, Circular Linked List and Doubly Linked List. We start with the basics of Linked List and then, move to applications of the different types of Linked List.
Linked list 🤔The linked list is a linear data structure, that has a sequence of continuous nodes. A single node is just the object which contains things like, "data" and a "next" pointer which points to the next node in case of singly and circular linked list, and also "previou...
Using Firestore Database with React App

Hello Everyone , In the previous article , we learnt about the react.js and it's basic functionalities .If you haven't read that article , you can read it here : - Basics-of-React-js.
In this article , we will build the react app which shows the visitor details and stores the visitor detail in database . For the database , we will use firebase firestore. We will add the feature to delete records in database as well.
Why ?
Because, it's easy to integrate and we can work directly on the frontend...
February 7, 2021
What is a Disarium Number?

A disarium number is a number in which the sum of the digits to the power of their respective position is equal to the number itself (position is counted from left to right starting from 1).
Example of a Disarium number is 175,
1¹ + 7² + 5³ = 1 + 49 + 125= 175
Hence,175 is a disarium number.
Our approach will be straightforward. We will break the number into digits and then power it with their respective position and then add it to check if the obtained sum equals the given number.
Psuedo Code f...February 2, 2021
Media Source Extension in HTML
Media Source Extensions extends HTMLMediaElement to allow JavaScript to generate media streams for playback. Allowing JavaScript to generate streams facilitates a variety of use cases like adaptive streaming and time shifting live streams.
IntroductionFrom early to late 2000s, video playback on web was relied on the flash plugin.This was because, at that time,there were no other techonology to stream videos in the browser.In those times user had no other choice as they have install plugins like...
January 30, 2021
Assembly Line Scheduling using Dynamic Programming
In an product industry, produts are produced using assembly lines. Multiple lines are worked together to produce a useable product and completed useable product exits at the end of the line.
For making a product in the optimal time we should choose the optimised assembly line from a station so that a company can make product in the best utilized time.
Problem StatementThe main goal of solving the Assembly Line Scheduling problem is to determine which stations to choose from line 1 and which to...
Commonly asked interview questions on sorting algorithms. Power booster for your interview preparation!
We always think that giving interview is hard,but with right approach and preperation nothing is impossible. The magic doesn't happen in a day, you should PRACTICE and WORK enough. We all are on the journey of finding better opportunity and this article get's you covered of few aspects!
We are going to walk through the commonly asked questions in technical interview. In this article we will focus on sorting algorithms.
Areas to take a close look into:
Time complexity.Space complexity.Data str...Dice Throw Problem (Dynamic Programming)
There are d dice each having f faces. We need to find the number of ways in which we can get sum s from the faces when the dice are rolled.
Let us first understand the problem with an example-
If there are 2 dice with 2 faces, then to get the sum as 3, there can be 2 ways-1st die will have the value 1 and 2nd will have 2.1st die will be faced with 2 and 2nd with 1.Hence, for f=2, d=2, s=3, the answer will be 2.
Approach -1) BRUTE FORCE -
The naive approach is to find all the possible com...