Skip to content

Category Archives: GeeksQuiz

Given an array of integers arr[] consisting of N integers, the task is to minimize the sum of the given array by performing at most… Read More
Given two integers X and Y, the task is to perform the following operations: Find all prime numbers in the range [X, Y]. Generate all… Read More
Given a source node S, a sink node T, two matrices Cap[ ][ ] and Cost[ ][ ] representing a graph, where Cap[i][j] is the… Read More
TCS is a great place to start your career as a fresher. It offers a great workplace as well as a friendly environment with a… Read More
Prerequisites: Graph and its representationsGiven an adjacency matrix g[][] of a graph consisting of N vertices, the task is to modify the matrix after insertion… Read More
Given two nodes of a binary tree v1 and v2, the task is to check if two nodes are on the same path in a… Read More
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