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) […]

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 […]

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 […]

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 […]

Backspace String Compare Leetcode LeetCode Question Link: https://leetcode.com/problems/backspace-string-compare/ Given two strings s and t, return true if they are equal when both are typed into empty text editors. ‘#’ means a backspace character. Note that after backspacing an empty text, the text will continue empty. Example 2: Input: s = “ab##”, t = “c#d#” Output: true Explanation: Both s and t become […]

Angular Interview Questions & Answers ðŸ’¡ What is property binding and attribute binding? âœ” Property binding in Angular helps you set values for properties of HTML elements or directives.In this example, src is the name of the element property. âœ” Attribute binding in Angular helps you set values for attributes directly. With attribute binding, you […]

Top 30 JavaScript Interview Questions âœ‹ What are the features of ES6? Classes Modules Default Parameters > function(height = 50, color = ‘red’) { } Template Literals > Your name is \${first} \${last}. Multi-line Strings >By using backticks. Destructuring Assignment Arrow Functions Promises > ES6 introduced Promises, is a First class representation of a value […]

Top 40 Awesome CSS Interview Questions ðŸ’¡ What is The Viewport? The viewport is the user’s visible area of a web page. HTML5 introduced a method to control the viewport, through the tag. initial-scale=1.0 part sets the initial zoom level when the page is first loaded by the browser. width=device-width part sets the width of […]

Tips to Boost Angular App Performance âœ” Stop unwanted Change detections By default, components in an Angular application runs change detection for every user interaction. We can use ChangeDetectionStrategy.OnPush in the @Component decorator. This tells Angular to run change detection only if an input has changed, and that all of the inputs can be considered […]

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 […]

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 […]

Top JavaScript Algorithms âœ‹ Binary Search Algorithm Binary search is a faster and more efficient search to find an element in a given sorted Array. Linear search checks every array index element while a given element does not found. If we have an array of 1 to 16 Like [1,2,3â€¦,16].So to search number 15, for […]

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 […]

Angular NgModule AOT and DI âœ‹ What is an alternative to the @Input and @Output decorator? inputs and outputs selectors in component decorator are another way to define input and output properties, If we do like this we don’t need to import @Input and @Output. inputs: [‘name’, ’empId’],outputs: [‘changeName’, ‘updateId’] âœ‹ What are all types […]

Angular Dependency Injection Provider The Angular Dependency Injection provides several types of providers. Class Provider : useClass Value Provider: useValue Factory Provider: useFactory Aliased Class Provider: useExisting useClass Provider when you want to provide another class with your provider DI Token then we use useClass class provider. This may be an instance of the same […]

TypeScript New & Latest Features âœ‹ What is index signatures in Typescript? TypeScript has a feature called index signatures. These signatures are a way to signal to the type system that users can access arbitrarily-named properties. So in simple words by using index signature, we can defines properties in models that are not pre-known or […]