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
Java Multithreading Tutorial
Threads are the backbone of multithreading. We are living in a real-world which in itself is caught on the web surrounded by lots of applications. With the advancement in ...
Read More
Java
Java-Multithreading
Java Programs
Must Know Things to Clear Your Python Coding Interview
Python is not only one of the most loved languages but rather it is used in various different domains. Due to its high dependency and usage in a lot of fields, there has s...
Read More
GBlog
Python
Find min and max values among all maximum leaf nodes from all possible Binary Max Heap
Given a positive integer N, the task is to find the largest and smallest elements, from the maximum leaf nodes of every possible binary max-heap formed by taking the first...
Read More
Tree
Heap
Data Structures-Heap
DSA
Check if given Strings can be made equal by inserting at most 1 String
Given two sentences S1 and S2, the task is to check if the sentences can be made equal by inserting at most one sentence(possibly, empty) into any one of the two sentences...
Read More
Strings
Queue
Searching
deque
DSA
C/C++ Puzzles
Find the repeating element in an Array of size N consisting of first M natural numbers
Given an array arr[] of size N, which contains a permutation of numbers from 1 to M, as well as an element that is repeated(one or more times), the task is to find the rep...
Read More
Arrays
Searching
Sorting
DSA
Count of distinct GCDs among all the non-empty subsequences of given array
Given an integer array arr[] of size N, the task is to calculate the total number of distinct Greatest Common Divisors(GCDs) among all the non-empty subsequences of arr[]....
Read More
Arrays
Mathematical
GCD-LCM
subsequence
DSA
Find the maximum GCD possible for some pair in a given range [L, R]
Given a range L to R, the task is to find the maximum possible value of GCD(X, Y) such that X and Y belongs to the given range, i.e. L ? X Y ? R.Examples:Input: L = 101, ...
Read More
Mathematical
GCD-LCM
number-theory
DSA
Different Types of Websites
A website is a collection of interlinked web pages with a common domain name. The website can be made by any individual, group, or company. All the websites together const...
Read More
School Programming
Picked
School Learning
Class 6
Lexicographically largest string formed in minimum moves by replacing characters of given String
Given a string S consisting of N lowercase English characters, the task is to print the lexicographically, the largest string obtained using only the minimum number of mov...
Read More
Strings
Searching
Hash
frequency-counting
lexicographic-ordering
DSA
Check if it is possible to color N objects such that for ith object, exactly arr[i] distinct colors are used
Given an array arr[] consisting of N positive integers, the task is to check if it is possible to color the N objects such that for ith element of the array there exist ex...
Read More
Arrays
Pattern Searching
Sorting
DSA
Minimum operations to make product of adjacent element pair of prefix sum negative
Given an array arr[ ] of size N, consider an array prefix[ ] where prefix[i] is the sum of the first i elements of arr. The task is to find the minimum number of operation...
Read More
Arrays
Greedy
prefix-sum
DSA
Beginner's Guide to Photoshop Tools
Adobe Photoshop is a raster-based image editing software. It was originally developed by the American brothers Thomas and John Knoll in 1987 and then later Adobe.Inc broug...
Read More
School Programming
Picked
School Learning
Class 7
Count of subarrays with largest element at least twice the largest of remaining elements
Given an array arr[] consisting of N positive integers, the task is to find the count of subarrays such that the maximum element of the subarray is greater than twice the ...
Read More
Arrays
Mathematical
subarray
DSA
Maximize the length of upper boundary formed by placing given N rectangles horizontally or vertically
Given a vector of pairs, V[] denoting the width and height of N rectangles numbered from 1 to N, these rectangles are placed in contact with the horizontal axis and are ad...
Read More
Dynamic Programming
Geometric
Combinatorial
Recursion
DSA
Number of ways to select K small even number from left of each element in given Array
Given an array, arr[] consisting of N distinct integers and a positive integer K, the task is to find the number of ways to select K elements from the left side of the eve...
Read More
Arrays
Searching
Combinatorial
Data Structures
DSA
1
...
6131
6132
6133
...
11561