Skip to content

Category Archives: GeeksQuiz

Given two integers N and X, the task is to find the minimum count of integers with sum N and having unit digit X. If… Read More
Given a binary tree, the task is to print the longest path from the root node to the leaf node. If there are multiple answers… Read More
Given a positive integer N, the task is to find the largest integer M such that 0 <= M < N and XOR(M, N) is… Read More
Given a binary string s and a number K, the task is to find the maximum number of 0s that can be replaced by 1s… Read More
Given an undirected non-weighted graph G. For a given node start return the shortest path that is the number of edges from start to all… Read More
Given an array arr[] consisting of N integers and an integer K, the task is to find the length of the longest subsequence with a… Read More
Given an array arr[] of N positive integers which denotes the cost of selling and buying a stock on each of the N days. The… Read More
In a single-elimination tournament, such as the tennis Grand Slam championships – every losing player is immediately eliminated from the subsequent rounds until a single… Read More
Given an array of integers arr[], the task is to count the minimum number of changes required to convert each array element to its nearest… Read More
There is a circle of N > 2 lights with a switch next to each of them. Each switch can be flipped between two positions,… Read More
Give two boxes B1 and B2 one have 50 red marbles and other have 50 blue marbles. A ball is selected randomly from any of… Read More
An algorithm like Insertion Sort can be understood easily by visualizing. In this article, a program that visualizes the Insertion Sort Algorithm has been implemented. The… Read More
Given the data for Hotel management and User:Hotel Data:  Hotel Name Room Available Location Rating Price per Room H1 4 Bangalore 5 100 H2 5… Read More
Given a matrix mat[][] with N rows and M columns. The task is to find the minimum number of changes required in the matrix such… Read More