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
Category Archives: GeeksQuiz
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
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
Given an encoded string str consisting of digits and * which can be filled by any digit 1 – 9, the task is to find… Read More
Given string str of the lowercase alphabet and an integer K, the task is to count all substrings of length K which have exactly K… Read More
In this article we shall calculate the volume, Curved surface area (CSA) and Total surface area of a hollow sphere or a spherical shell. Below… Read More
Given a text file in a directory, the task is to print the file content backward i.e., the last line should get printed first, 2nd… Read More
Given a number K, the task is to create the circular linked list structure with four pointers that are next, previous, up, and down Using… Read More
Given an integer N, the task is to find the Nth natural number with exactly two bits set. Examples: Input: N = 4 Output: 9 Explanation: Numbers with exactly… Read More
Puzzle: Rama started on a quest of visiting temples, with few coins in his pockets. As soon as he visits any temple, the money in… Read More
Puzzle: There was a water kingdom where lived a king octopus with his few servants. The servants either had 6, 7 or 8 legs. It… Read More
Given a series of integers from 1 to infinity and a number N.The task is to remove every (i + 1)-th element from the remaining… Read More