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 →

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

Read More →

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

Read More →

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

Read More →

HTML Form with Pure CSS Create a Div in the middle of the screen with box-shadow Materialize Input field with CSS Custom Checkbox and Radio button with Pure CSS Custom Checkbox CSS Step by Step Custom Radio button CSS step by step Materialize type Button with Pure CSS *****Complete Code********* Complete Code –https://stackblitz.com/edit/html-form-with-pure-css-javascript?file=index.html HTML advance […]

Read More →

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

Read More →

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

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 →

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

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 →

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

Read More →

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

Read More →

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

Read More →

Rx JS Top Operators with examples Let’s start operators with definition and examples: ✋ from operator Turn an array, promise, or iterable into an observable. 💡 This operator can be used to convert a promise to an observable! 💡 For arrays and iterables, all contained values will be emitted as a sequence! 💡 This operator […]

Read More →

What’s new in Angular 9 Angular 9 release completely switches an angular application to a new fast reliable and performance-oriented compiler by default that is IVY. Angular 9 also introduced improved ways of testing components. How to update to version 9 As per Angular official… ✋ To have the best update experience, we recommend you […]

Read More →

What’s new in Angular 8 Angular is one of the most popular and awesome Javascript frameworks for Web and Mobile Application development. And now Angular has finally released it’s latest “Angular 8” on 23-May-2019. This release of Angular is packed up with many attractive features that made Angular 8 unique compared to its previous versions. […]

Read More →