## First element of every K sets having consecutive elements with exactly K prime factors less than N

Given two integers N and K, the task is to find the first element for every set of K consecutive elements which have exactly K… Read More »

Given two integers N and K, the task is to find the first element for every set of K consecutive elements which have exactly K… 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 »

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… Read More »

Given two integer N and K, the task is to find the size of the smallest string that contains all permutations of length N that can… Read More »

Given two unsorted Linked List, the task is to merge them to get a sorted singly linked list. Examples: Input: List 1 = 3 ->… 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 a string str of lowercase alphabets 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… Read More »