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
Minimum operations to convert an Array into a Permutation of 1 to N by replacing with remainder from some d
Given an array arr[] of size N, the task is to find the minimum number of operations to convert the array into a permutation of [1, n], in each operation, an element a[i] ...
Read More
Arrays
Greedy
permutation
Algo Geek
Algo-Geek 2021
DSA
Largest set of numbers upto N such that either i or i/2 is present
Given a positive integer N, the task is to find the length of largest set that can be generated such that if i is present, then i/2 will not be present and 1=i=N.Note: For...
Read More
Arrays
Greedy
Mathematical
cpp-set
Algo Geek
Algo-Geek 2021
DSA
Divide a number into two unequal even parts
Given a positive integer N. The task is to decide whether the integer can be divided into two unequal positive even parts or not.Examples:Input: N = 8Output: YESExplanatio...
Read More
Mathematical
School Programming
C++ Programs
Algo Geek
Algo-Geek 2021
DSA
Count of K length substrings containing exactly X vowels
Given string str of N characters containing both uppercase and lowercase English alphabets, the task is to find the count of substrings of size K containing exactly X vowe...
Read More
Strings
Mathematical
substring
DSA
Count of substrings containing exactly K distinct vowels
Given string str of size N containing both uppercase and lowercase letters, and an integer K. The task is to find the count of substrings containing exactly K distinct vow...
Read More
Strings
Mathematical
substring
Algo Geek
Algo-Geek 2021
DSA
Count of K length substring containing at most X distinct vowels
Given string str of size N containing both uppercase and lowercase letters, and two integers K and X. The task is to find the count of substrings of size K containing at m...
Read More
Strings
Mathematical
Hash
substring
Algo Geek
Algo-Geek 2021
DSA
Find all substrings containing exactly K unique vowels
Given string str of length N containing both uppercase and lowercase letters, and an integer K. The task is to find all substrings containing exactly K distinct vowels.Exa...
Read More
Strings
Mathematical
Hash
substring
Algo Geek
Algo-Geek 2021
DSA
C++ Program for Sorting array except elements in a subarray
Given an array A positive integers, sort the array in ascending order such that element in given subarray (start and end indexes are input) in unsorted array stay unmoved ...
Read More
Arrays
Sorting
Technical Scripter
C++
C++ Programs
DSA
Javascript Program for Find k pairs with smallest sums in two arrays
Given two integer arrays arr1[] and arr2[] sorted in ascending order and an integer k. Find k pairs with smallest sums such that one element of a pair belongs to arr1[] an...
Read More
Arrays
Order-Statistics
Web Technologies
JavaScript
DSA
Java Program to Find k pairs with smallest sums in two arrays
Given two integer arrays arr1[] and arr2[] sorted in ascending order and an integer k. Find k pairs with smallest sums such that one element of a pair belongs to arr1[] an...
Read More
Arrays
Order-Statistics
Java
Java Programs
DSA
Find all pairs in an Array in sorted order with minimum absolute difference
Given an integer array arr[] of size N, the task is to find all distinct pairs having minimum absolute difference and print them in ascending order.Examples:Input: arr[] =...
Read More
Arrays
Sorting
Mathematical
Algo Geek
Algo-Geek 2021
DSA
Calculate the sum of sum of numbers in range L to R
Given two numbers L and R. The task is to find the sum of numbers in the range L to R.Examples:Input: L = 3, R = 6Output: 40Explanation: 3 + 3+4 + 3+4+5 + 3+4+5+6 = 40Inpu...
Read More
Pattern Searching
Mathematical
array-range-queries
series-sum
Algo Geek
Algo-Geek 2021
DSA
Count of K length subarrays containing only 1s in given Binary String | Set 2
Given binary string str, the task is to find the count of K length subarrays containing only 1s.ExamplesInput: str = "0101000", K=1Output: 2Explanation: 0101000 - There ar...
Read More
Strings
binary-string
subarray
sliding-window
Algo Geek
Algo-Geek 2021
DSA
Find all K length subarrays containing only 1s in given Binary String
Given a binary string str[], the task is to find all possible K length subarrays containing only 1s and print their starting and ending index.Examples:Input: str = "010100...
Read More
Strings
binary-string
subarray
Algo Geek
Algo-Geek 2021
DSA
Print longest Subsequence such that difference between adjacent elements is K
Given an array arr[] of size N, and integer K. The task is to find the longest subsequence with the difference between adjacent elements as KExamples:Input: arr[] = { 5, 5...
Read More
Arrays
Hash
subsequence
Java-HashMap
Algo Geek
Algo-Geek 2021
DSA
1
...
4990
4991
4992
...
11375