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
Best Time to Buy and Sell Stock
Given an array prices[] of length N, representing the prices of the stocks on different days, the task is to find the maximum profit possible by buying and selling the sto...
Read More
Dynamic Programming
Technical Scripter
Technical Scripter 2020
DSA
C/C++ Puzzles
Reverse the order of all nodes at even position in given Linked List
Given a linked list A[] of N integers, the task is to reverse the order of all integers at an even position.Examples:Input: A[] = 1 - 2 - 3 - 4 - 5 - 6 - NULLOutput: 1 6 3...
Read More
Linked List
Linked Lists
Reverse
DSA
Minimum size lexicographically smallest string which is not a substring of given string
Given a string s, the task is to find the lexicographically smallest string of minimum characters that do not exist as a substring in S.Examples:Input: S = "aabacdefghijkl...
Read More
Strings
Greedy
BFS
lexicographic-ordering
substring
DSA
Find all indices of a given element in sorted form of given Array
Given an array arr[] of integers of size N and a target value val. Your task is to find the indices of val in the array after sorting the array in increasing order.Note: T...
Read More
Arrays
Sorting
DSA
Minimize deletions from either end to remove Minimum and Maximum from Array
Given array of integers arr[] of size N, the task is to find the count of minimum number of deletion operations to remove minimum and the maximum element from the array. T...
Read More
Arrays
Greedy
Mathematical
DSA
Find the parent node of maximum product Siblings in given Binary Tree
Given a binary tree, the task is to find the node whose children have maximum Sibling product in the given Binary Tree. If there are multiple such nodes, return the node w...
Read More
Tree
tree-traversal
Mathematical
tree-level-order
DSA
Count frequency of digit K in given Array
Given an array arr[] of integers of size N and a single digit integer K. The task is to find the total count of occurrences of the digit K in the arrayExamples:Input: arr[...
Read More
Arrays
frequency-counting
DSA
Check if a Lexicographical Pythagorean Triplets exists in range [0, K) of lexicographically largest string
Given a string str and a positive integer K. The task is to find if there exist a Pythagorean Triples in the first window of size K of a string which have the same charact...
Read More
Strings
Sorting
Mathematical
lexicographic-ordering
DSA
Sort given Array using at most N cyclic shift on any subarray
Given an array arr[] containing N integers, with duplicates. The task is to sort the array in increasing order using at most N cyclic shift on any sub-array.Cyclic shift o...
Read More
Arrays
Sorting
rotation
subarray
DSA
Find N-th term in the series 0, 4, 18, 48, 100 ...
Given a series 0, 4, 18, 48, 100 . . . and an integer N, the task is to find the N-th term of the series.Examples:Input: N = 4Output: 48Explanation: As given in the sequen...
Read More
Pattern Searching
Mathematical
maths-cube
maths-perfect-square
Sequence and Series
DSA
Maximum sum subsequence of any size which is decreasing-increasing alternatively
Given an array of integers arr[], find the subsequence with maximum sum whose elements are first decreasing, then increasing, or vice versa, The subsequence can start anyw...
Read More
Arrays
Dynamic Programming
Backtracking
Pattern Searching
subsequence
DSA
Juggler Sequence | Set 2 (Using Recursion)
Juggler Sequence is a series of integer number in which the first term starts with a positive integer number a and the remaining terms are generated from the immediate pre...
Read More
Pattern Searching
Mathematical
series
Recursion
Sequence and Series
DSA
Find the range [L, R] such that sum of numbers in this range equals to N
Given an integer N (N ≠ 0), the task is to find a range [L, R] (−10⁻¹⁸ L R 10¹⁸) such that sum of all integers in this range is equal to N.L + (L+1) + … + (R−1) + R = N...
Read More
Mathematical
number-digits
DSA
Minimum number to be added to N so that it does not contains digit D
Given a positive integer N and a digit D, the task is to find the smallest non-negative number required to be added to the given number such that after addition, the resul...
Read More
Searching
Mathematical
number-digits
DSA
Check if the Product of all Array elements is a Perfect Square or not
Given an array arr[] consisting of N positive integers, the task is to check if the product of all the elements of the given array arr[] is a perfect square or not. If fou...
Read More
Arrays
Mathematical
sieve
maths-perfect-square
DSA
1
...
4966
4967
4968
...
11269