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
Full Stack Developer Roadmap [2024 Updated]
Web Developer/ Full Stack Web Developer - How do you feel when you tag yourself with such titles? A long journey takes place to be called by such names. In the beginning, ...
Read More
Count pairs from an array having product of their sum and difference equal to 0
Given an array arr[] of size N, the task is to count possible pairs of array elements (arr[i], arr[j]) such that (arr[i] + arr[j]) * (arr[i] - arr[j]) is 0.Examples:Input:...
Read More
Arrays
Mathematical
Hash
Combinatorial
number-theory
frequency-counting
DSA
Split array into two subsequences having minimum count of pairs with sum equal to X
Given an array arr[] consisting of N integers and an integer X, the task is to split the array into two subsequences such that the number of pairs having a sum equal to X ...
Read More
Arrays
Greedy
Mathematical
subsequence
array-rearrange
DSA
Minimum number of operations to convert a given sequence into a Geometric Progression | Set 2
Given an array arr[] consisting of N integers, the following three operations can be performed on any element one at a time:Add one to the element.Subtract one from the el...
Read More
Arrays
Sorting
Mathematical
Geometric Progression
DSA
Generate all distinct subsequences of array using backtracking
Given an array arr[] consisting of N positive integers, the task is to generate all distinct subsequences of the array.Examples:Input: arr[] = {1, 2, 2}Output: {} {1} {1, ...
Read More
Arrays
Backtracking
Sorting
Combinatorial
subsequence
Recursion
DSA
Maximum possible sum of squares of stack elements satisfying the given properties
Given two integers S and N, the task is to find the maximum possible sum of squares of N integers that can be placed in a stack such that the following properties are sati...
Read More
Stack
Greedy
Mathematical
Competitive Programming
maths-power
DSA
Maximize sum of array elements removed by performing the given operations
Given two arrays arr[] and min[] consisting of N integers and an integer K. For each index i, arr[i] can be reduced to at most min[i]. Consider a variable, say S(initially...
Read More
Arrays
Greedy
Searching
Sorting
Mathematical
cpp-vector
DSA
Find a number K such that exactly K array elements are greater than or equal to K
Given an array a[] of size N, which contains only non-negative elements, the task is to find any integer K for which there are exactly K array elements that are greater th...
Read More
Arrays
Searching
Mathematical
frequency-counting
DSA
Split array into minimum number of subsets having maximum pair sum at most K
Given an array, arr[] of size N and an integer K, the task is to partition the array into the minimum number of subsets such that the maximum pair sum in each subset is le...
Read More
Arrays
Dynamic Programming
Greedy
Mathematical
array-rearrange
DSA
Maximize count of array elements required to obtain given sum
Given an integer V and an array arr[] consisting of N integers, the task is to find the maximum number of array elements that can be selected from array arr[] to obtain th...
Read More
Arrays
Dynamic Programming
Recursion
dp-coin-change
DSA
Queries to search for an element in an array and modify the array based on given conditions
Given an array arr[] consisting of N integers and an integer X, the task is to print the array after performing X queries denoted by an array operations[]. The task for ea...
Read More
Arrays
Searching
array-rearrange
Reverse
subarray
DSA
Arithmetic Expression Having Only + and * Operators in Java
Here, we will discuss the Arithmetic expression having operators like addition and multiplication and you will see how you can take an expression and can calculate the val...
Read More
Java
Java-Operators
Java Programs
Java 8
Tic-Tac-Toe Game in Java
In the Tic-Tac-Toe game, you will see the approach of the game is implemented. In this game, two players will be played and you have one print board on the screen where fr...
Read More
Java
Java Programs
What is Lock Striping in Java Concurrency?
Lock striping is where the locking happens on a few containers or stripes or buckets, implying that getting to a pail just bolts that can and not the whole information str...
Read More
Java
Java-concurrent-package
Backup Database in MS SQL Server
Prerequisite – Create database in MS SQL ServerTo Create a Full Database Backup, the below methods could be used -SQL Server Management Studio.Transact-SQL.Restriction :Ba...
Read More
SQL
DBMS-SQL
SQL-Server
DFA of Regular Language L ={w ∈ {a,b}* : Na(w) mod 3 > Nb(w) mod 3}
In this article, we will design the Deterministic Finite Automata of the Regular Language L ={w ∈ {a, b}* : Na(w) mod 3 > Nb(w) mod 3}.Regular Expression can be anything f...
Read More
Theory of Computation
1
...
6731
6732
6733
...
10994