Courses
Tutorials
Jobs
Practice
Contests
Data Structure
Java
Python
HTML
Interview Preparation
Trending Now
DSA
Web Tech
Foundational Courses
Data Science
Practice Problem
Python
Machine Learning
JavaScript
System Design
Django
DevOps Tutorial
Java
C
C++
ReactJS
NodeJS
CP Live
Aptitude
Puzzles
Projects
GBlog
Frontend Developer Roadmap 2024
Frontend development means to design the face of a website or application. It involves working on the appearance of the website. Building interactive buttons, using images...
Read More
Count ways to generate pairs having Bitwise XOR and Bitwise AND equal to X and Y respectively
Given two integers X and Y, the task is to find the total number of ways to generate a pair of integers A and B such that Bitwise XOR and Bitwise AND between A and B is X ...
Read More
Bit Magic
setBitCount
Greedy
Mathematical
Bitwise-XOR
Bitwise-AND
DSA
Rearrange an array to make similar indexed elements different from that of another array
Given two sorted arrays A[] and B[] consisting of N distinct integers, the task is to rearrange the elements of array B[] such that, for every ith index, A[i] is not equal...
Read More
Arrays
Greedy
array-rearrange
Reverse
DSA
Maximum subsequence sum possible by multiplying each element by its index
Given an array arr[] consisting of N integers, the task is to find the maximum subsequence sum by multiplying each element of the resultant subsequence by its index(1-base...
Read More
Arrays
Interview Experiences
Dynamic Programming
Mathematical
subsequence
Recursion
DSA
Experiences
Make all array elements equal by repeated subtraction of absolute difference of pairs from their maximum
Given an array arr[] consisting of N integers, the task is to make all array elements equal by selecting any pair of integers from the array and replacing the larger integ...
Read More
Arrays
Greedy
Mathematical
array-rearrange
HCF
DSA
Count unimodal and non-unimodal permutations of first N natural numbers
Given an integer N, the task is to count the total number of unimodal and non-unimodal permutations of integers [1, N] possible.An unimodal permutation is a permutation wh...
Read More
Dynamic Programming
Mathematical
Competitive Programming
factorial
permutation
Permutation and Combination
C++ Programs
DSA
Lexicographically smallest permutation of a string that contains all substrings of another string
Given two strings A and B, the task is to find lexicographically the smallest permutation of string B such that it contains every substring from the string A as its substr...
Read More
Strings
Searching
Hash
permutation
Data Structures
C++ Programs
Java Programs
frequency-counting
substring
DSA
C/C++ Puzzles
Modify string by increasing each character by its distance from the end of the word
Given a string S, the task is to modify the given string by replacing every character S[i] by a new character whose value is (S[i] + its position from the end of the word)...
Read More
Strings
School Programming
ASCII
DSA
Pair of integers having least GCD among all given pairs having GCD exceeding K
Given an array arr[][] containing pairs of integers in increasing order of GCDs, and an integer K, the task is to find a pair of integers whose GCD is at least K and is al...
Read More
Arrays
Binary Search
Searching
Mathematical
DSA
Find the interval which contains maximum number of concurrent meetings
Given a two-dimensional array arr[][] of dimensions N * 2 which contains the starting and ending time for N meetings on a given day. The task is to print a list of time sl...
Read More
Bloomberg
Queue
Searching
Sorting
Heap
Matrix
interview-preparation
min-heap
DSA
Check if a subarray of size K exists whose elements form a number divisible by 3
Given an array arr[], of size N and a positive integer K, the task is to find a subarray of size K whose elements can be used to generate a number which is divisible by 3....
Read More
Arrays
Mathematical
subarray
sliding-window
divisibility
subarray-sum
DSA
Check if array can be sorted by swapping pairs having GCD equal to the smallest element in the array
Given an array arr[] of size N, the task is to check if an array can be sorted by swapping only the elements whose GCD (greatest common divisor) is equal to the smallest e...
Read More
Arrays
Misc
Searching
Sorting
Mathematical
array-rearrange
DSA
Priority Queue using Binary Heap
Priority Queue is an extension of the queue with the following properties:Every item has a priority associated with it.An element with high priority is dequeued before an ...
Read More
Arrays
Heap
Data Structures
Data Structures-Heap
priority-queue
cpp-priority-queue
min-heap
DSA
Number from a range [L, R] having Kth minimum cost of conversion to 1 by given operations
Given three integers L, R and K where [L, R] denotes the range of elements, the task is to find the element in the range [L, R] requiring Kth minimum cost of conversion to...
Read More
Arrays
Dynamic Programming
Searching
Sorting
Mathematical
Recursion
DSA
Find the missing digit x from the given expression
Given an alphanumeric string, consisting of a single alphabet X, which represents an expression of the form:A operator B = C where A, B and C denotes integers and the oper...
Read More
Strings
Searching
Mathematical
School Programming
DSA
Swap the elements between any two given quadrants of a Matrix
Given a matrix, mat[][] of size N * M, where N and M is always even, and two integers X and Y, the task is to swap all the elements of the quadrant X quadrant with all the...
Read More
Greedy
Matrix
School Programming
DSA
1
...
7140
7141
7142
...
11266