Skip to content
Gblog Master the Coding Interview – Contest Series Based On Real Interviews
“If you want to clear your next Coding Interview, practice as many programming questions as you can!” – An obvious advice that a guy who’s… Read More
Given an array, arr[] of size N and an integer T. The task is to find for each index the minimum number of indices that… Read More
Given two positive integers N and K such that K≤N, the task is to find the maximum number of distinct integers in the range [1,… Read More
Given an array arr[] of N pairs, where each array element denotes a query of the form {L, R}, the task is to find the… Read More
Step 1: Initially, I filled a google form that said, “HashedIn – Freshers Registration Form” on 26th May 2021. Step 2: On June 4, I… Read More
Given two 2D matrices mat[][] and T[][] of size M×N and P×Q respectively. The task is to check whether the matrix T[][] is a result… Read More
Given an array arr[] of size N, the task is to calculate the maximum sum that can be obtained by dividing the array into several… Read More
Given three positive integers A, B, and N, which represent a linear congruence of the form AX=B (mod N), the task is to print all… Read More
Given an array arr[] of size N, (where 0<A[i]<=N, for all 0<=i<N), the task is to calculate for each number X from 1 to N,… Read More
We all know the popularity of React, and how this library has made development tasks easier for frontend developers. React is the most popular front-end… Read More
Threads are the backbone of multithreading. We are living in a real-world which in itself is caught on the web surrounded by lots of applications.… Read More
Python is not only one of the most loved languages but rather it is used in various different domains. Due to its high dependency and… Read More
Given a positive integer N, the task is to find the largest and smallest elements, from the maximum leaf nodes of every possible binary max-heap… Read More
Given two sentences S1 and S2, the task is to check if the sentences can be made equal by inserting at most one sentence(possibly, empty)… Read More
Given an array arr[] of size N, which contains a permutation of numbers from 1 to M, as well as an element that is repeated(one… Read More
Given an integer array arr[] of size N, the task is to calculate the total number of distinct Greatest Common Divisors(GCDs) among all the non-empty… Read More