ASCII Code is magic to do String Operations.  What is ASCII? đź’ˇASCII is a common data encoding type used for computer-to-computer electronic communication.ASCII assigns standard numeric values to letters, numerals, punctuation marks, and other characters used in computers. đź’ˇWhat is the purpose of ASCII codes? The computer doesn’t understand English, Hindi, or any language. But […]

Read More →

Array Representation of Binary Tree đź’ˇ What is Full Binary Tree? A full binary tree is also known as a proper binary tree or a 2-tree is a tree in which every node other than the leaves has two children. If height of the tree is h then the maximum number of nodes – 2^(h+1) […]

Read More →

Graphs in Data Structure Graphs are really just collections of nodes and edges. In the graph, these nodes are often called vertices or vertex for singular, and the connection is often called an edge. The important thing is here that these nodes can have multiple connections to multiple different nodes. This is one of the […]

Read More →

Traversing 2 D array đź’ˇ First Understand JavaScript multidimensional array JavaScript does not provide the multidimensional array natively. However, We create a multidimensional array by defining an array of elements, where each element also contains an array. đź’ˇ Create 2 D Array in JavaScript đź’ˇ Let’s See 3-D array Structure – each element of the array is a two-dimensional array. BFS & DFS đź’ˇ What is BFS? BFS stands for Breadth-First Search. It is also known as level order traversal.BFS algorithm uses a queue data structure to track […]

Read More →

Time Complexity & Calculations Time complexity measures the time taken to run each statement of code in an algorithm. Space and Time complexity can define the effectiveness of an algorithm. đź’ˇ Time complexity depends on the number of inputs passed to that algorithm. And, there is a relation between the input data size (n) and […]

Read More →

JavaScript Rotate 2D matrix at 90 deg clockwise without creating another array đź’ˇ 2 Dimensional matrix array is n * n matrix that is created by using rows and columns. Mostly we represent row with i and column with j. So in case, we have to pick an element from the matrix we use 2D […]

Read More →

HashTable Data Structure in JavaScript âś‹ What is Hash Table? In this blog, I am going to explain Hash Tables, which are also known as Hash Maps, Maps, or Dictionaries. A hash table is an associative array data structure that maps keys to values & it is capable to store a large amount of data […]

Read More →

Trie Data Structure in JavaScript đź’ˇ A Trie is a kind of tree, known by many names including prefix tree, digital search tree, and retrieval tree (hence the name ‘trie’). A trie represents a sequence in its structure. It stores sequences of values rather than individual single values. It can have multiple child nodes where […]

Read More →

JavaScript String Permutation Program đź’ˇ Let’s understand first What is Permutation in math? Selection of subsets is called a permutation when the order of selection matters, a combination when order is not a factor. In simple words:When the order doesn’t matter, it is a Combination.Permutation is When the order does matter. đź’ˇ Permutations with Repetition […]

Read More →