Given an array arr[] and an integer value K, the task is to count the maximum number of array elements that can be selected such… Read More

Given an integer N, the task is to count the number of ways to represent N as the sum of powers of 2. Examples: Input:… Read More

Given two integers N and K, the task is to find whether it is possible to represent N as the sum of exactly K powers… Read More

Given an array arr[] of size N (1 ≤ N ≤ 105), the task is to find the number of ways to select a triplet… Read More

Given two arrays arr1[] and arr2[] of size N and M respectively, the task is to count the minimum number of swapps required between the… Read More

Given a array of strings S[] of size N (1 ≤ N ≤ 105), sort characters of each string in descending order and then print… Read More

Given a binary string S of length N (1 ≤ N ≤ 105), the task is to print a permutation A consisting of integers 0… Read More

In this article, we will see how to create an auto-clicker using Python. The code will take input from the keyboard when the user clicks… Read More

Infosys came to our campus for a system engineer profile. First Round: It was an online general aptitude test which was 2 hrs. It consisted… Read More

Given a XOR linked list, the task is to pairwise swap the elements of the given XOR linked list . Examples: Input: 4 7 9… Read More

Given an XOR linked list, the task is to remove the first node of the XOR linked list. Examples: Input: XLL = 4 < –… Read More

Given an array arr[] consisting of N positive integers and a positive integer K, the task is to find the count of array elements whose… Read More

Given a 2D array arr[][] of size N, with each row representing intervals of the form {X, Y} ( 1-based indexing ), the task to… Read More

Given an array arr[] of size N and an array Q[] consisting of M integers, each representing a query, the task for each query Q[i]… Read More

Featured Articles

View All