Jul 10Understanding the Concept of Prefix Sum ArrayIn the realm of computer programming and algorithmic problem-solving, the concept of prefix sum array has proven to be a powerful tool. Whether you’re a seasoned programmer or just starting, understanding and utilizing prefix sum arrays can greatly enhance your ability to solve various types of problems efficiently. …Dsa Training5 min readDsa Training5 min read
Jun 3Understanding Event Bubbling in JavaScript and Its WorkingUnderstanding the concept of event bubbling in JavaScript is crucial for developers to create dynamic and efficient web applications. Imagine a webpage with multiple elements like buttons, images, and text. Now, let’s say an element was clicked, but which one? We know because we have clicked it, but how will…JavaScript3 min readJavaScript3 min read
May 26How to Detect a Click Outside of a React Component using Hooks?As web developers, we may come across situations where we might have to detect when a user clicks outside of a specific element, such as a modal or dropdown menu. This can be useful for closing the element or triggering some other action when the user clicks outside of it. …React2 min readReact2 min read
May 2How to Implement Infinite Scrolling in React by Creating a Custom HookWe often find ourselves in a situation where we have to deal with large sums of data in our Applications for user experience. If we render the data, in the same way, using the map function, the DOM Tree and the efficiency of our app will suffer the consequences like…React3 min readReact3 min read
Mar 27How to build a Movie App in React using TMDB APIReact Movie App or Movie App in React is a fun project that every React developer should make once, in order to improve/ enhance/ polish their React coding skills. It is a must considering AIs like ChatGPT which can do pretty much anything even coding are now among us. So…React3 min readReact3 min read
Feb 17A Guide to React Context API and useContext hookReact Context API was introduced a while ago with React version 16.3. It was mainly introduced to solve one of the major problems that React developers like us were facing at that time — prop drilling and component re-rendering. In this article, we will cover the reasons which led to…React3 min readReact3 min read
Nov 5, 2022Explaining TreeMap in Java in Simple EnglishTreeMap in Java, just like the HashMap, is part of the java collection framework. It is a red-black tree-based implementation of the Map interface, NavigableMap, and AbstractMap classes. It stores data in the form of Key and Value pairs where the key is a unique identifier used to associate each…Java3 min readJava3 min read
Published inJavarevisited·Sep 15, 2022Count the number of Trailing Zeros in the Factorial of a Given Number.Problem Statement Given a number find the number of trailing zeros that the factorial of that has. Examples : Input: n = 5 Output: 1 Factorial of 5 is 120 which has one trailing 0. Input: n = 20 Output: 4 Factorial of 20 is 93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000 which has 4 trailing zeroes.Data Structure Algorithm3 min readData Structure Algorithm3 min read
Sep 11, 2022How to Merge Two Sorted ArraysProblem You are given two sorted arrays A and B of lengths m and n, the task is to merge the two sorted arrays in such a way that the merged array is also sorted. Example Input A[] = {3, 9, 10, 18, 23} B[] = {5, 12, 15, 20, 21, 25} …Data Structure Algorithm2 min readData Structure Algorithm2 min read
Sep 5, 2022Explaining Selection Sort Algorithm in Simple EnglishIn this Blog, we will discuss the Selection Sort Algorithm and its working procedure. Selection sort is an in-place comparison-based sorting algorithm that sorts the array by repeatedly finding and swapping the minimum element with the leftmost element of the array. In-place means that the algorithm does not use extra…Data Structuresalgorithms3 min readData Structuresalgorithms3 min read