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
Maximize count of unique array elements by incrementing array elements by K
Given an array arr[] consisting of N integers and an integer K, the task is to find the maximum number of unique elements possible by increasing any array element by K onl...
Read More
Arrays
Mathematical
Hash
array-rearrange
cpp-map
frequency-counting
DSA
XOR Linked List - Reversal of a List
Given a XOR linked list, the task is to reverse the XOR linked list.Examples:Input: 4 – 7 – 9 – 7Output: 7 – 9 – 7 – 4Explanation:Reversing the linked list modifies the XO...
Read More
Linked List
Linked Lists
Bit Magic
Bitwise-XOR
Reverse
doubly linked list
DSA
Make all array elements equal to 0 by replacing minimum subsequences consisting of equal elements
Given an array arr[] of size N, the task is to make all array elements equal to 0 by replacing all elements of a subsequences of equal elements by any integer, minimum num...
Read More
Arrays
Greedy
Mathematical
Hash
subsequence
cpp-set
DSA
Find GCD between the sum of two given integers raised to the power of N and their difference
Given three positive integers, P, Q and N, the task is to find the GCD of (PN + QN) and (P - Q) under modulo 109 + 7.Examples:Input: p = 10, q = 6, n = 5Output: 4Explanati...
Read More
Mathematical
Technical Scripter
Modular Arithmetic
Numbers
HCF
Technical Scripter 2020
DSA
Minimize cost of removals required to make all remaining characters of the string unique
Given a string str and an array cost[] of size N where cost[i] denotes the cost to remove the ith character from the string str, the task is to find the minimum cost of re...
Read More
Strings
Searching
Mathematical
Hash
interview-preparation
DSA
Minimum increments or decrements by D required to make all array elements equal
Given an array arr[] of size N and an integer D, the task is to make all array elements equal by incrementing or decrementing minimum number of array elements by D. If it ...
Read More
Arrays
Misc
Greedy
Sorting
array-rearrange
Greedy Algorithms
DSA
Minimize steps required to reach the value N
Given an infinite number line from the range [-INFINITY, +INFINITY] and an integer N, the task is to find the minimum count of moves required to reach the N, starting from...
Read More
Dynamic Programming
Greedy
Mathematical
Technical Scripter
Greedy Algorithms
Numbers
DSA
Maximize sum of second minimums of each K length partitions of the array
Given an array A[] of size N and a positive integer K ( which will always be a factor of N), the task is to find the maximum possible sum of the second smallest elements o...
Read More
Arrays
Greedy
Sorting
Mathematical
subsequence
partition
DSA
Search for an element in a Mountain Array
Given a mountain array arr[] and an integer X, the task is to find the smallest index of X in the given array. If no such index is found, print -1.Examples:Input: arr = {1...
Read More
Arrays
Binary Search
Divide and Conquer
Searching
Sorting
Algorithms-Divide and Conquer
DSA
Split an array into equal length subsequences consisting of equal elements only
Given an array arr[] of size N, the task is to check if it is possible to split the array arr[] into different subsequences of equal size such that each element of the sub...
Read More
Arrays
Greedy
Mathematical
Hash
subsequence
HCF
cpp-map
partition
DSA
Split an array into minimum number of non-increasing or non-decreasing subarrays
Given an array arr[] of size N, the task is to split the given array into a minimum number of subarrays such that elements of each subarray are either in non-increasing or...
Read More
Arrays
Mathematical
Competitive Programming
subarray
partition
DSA
Find the nearest value present on the left of every array element
Given an array arr[] of size N, the task is for each array element is to find the nearest non-equal value present on its left in the array. If no such element is found, th...
Read More
Arrays
Searching
Mathematical
Hash
Technical Scripter
cpp-set
Technical Scripter 2020
DSA
Zynga Interview Experience SE-1 (Experienced)
Round 1(Google Meet Interview DS + ALGO 1H 10M): Started with a quick and healthy introduction. He asked me a little about my past projects, and we proceeded to the questi...
Read More
Interview Experiences
Graph
Experienced
Zynga
DSA
Experiences
Minimize array elements required to be incremented or decremented to convert given array into a Fibonacci Series
Given an array arr[], the task is to find the minimum number increments or decrements by 1 required to convert the array into a Fibonacci Series. If it is not possible, th...
Read More
Arrays
Greedy
Mathematical
Fibonacci
array-rearrange
DSA
Check if an array can be split into K non-overlapping subarrays whose Bitwise AND values are equal
Given an array arr[] of size N and a positive integer K, the task is to check if the array can be split into K non-overlapping and non-empty subarrays such that Bitwise AN...
Read More
Arrays
Bit Magic
Mathematical
subarray
Bitwise-AND
partition
DSA
1
...
6575
6576
6577
...
11268