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
Three 90 Challenge: Bigger and Better
As we transit into the new phase, it's essential to fuel our inner drive for success. On popular demand, GeeksforGeeks is happy to announce that we are back with the Thre...
Read More
Histogram Equalization using R language
Histogram equalization is a technique for adjusting image intensities to enhance contrast. To enhance the image’s contrast, it spreads out the most frequent pixel intensit...
Read More
Image-Processing
R Language
R-plots
R-Charts
R-Graphs
Power of a Lens
One of the most fascinating ideas of ray optics is the power of a lens. Simply stated, a lens's capacity to bend light is its strength in Ray Optics. The ability of a lens...
Read More
Picked
School Learning
Class 10
School Physics
ThreadLocalRandom vs SecureRandom Class in Java
ThreadLocalRandom class of java.util package is a random number generator that generates random numbers isolated to the current thread. It is a subclass of the Random clas...
Read More
Java
Difference Between
Picked
Java-Classes
Installing MATLAB on Windows
MATLAB stands for “Matrix Laboratory” and it is a numerical computing environment and fourth-generation programming language. designed by Math Works, MATLAB allows matrix ...
Read More
Picked
MATLAB
MATLAB-Basic
Best Books to Prepare QA, VARC and DILR For CAT 2021
"What are the best books for CAT preparation?" - If you're also in the search of a satisfactory answer for this particular question then let us tell you that you're not al...
Read More
GBlog
CAT
GFG-Course
GFG-Update
Check if removal of a subsequence of non-adjacent elements makes the array sorted
Given a binary array arr[] of size N, the task is to check if the array arr[] can be made sorted by removing any subsequence of non-adjacent array elements. If the array c...
Read More
Arrays
Greedy
Sorting
Mathematical
subsequence
array-rearrange
DSA
Find quadruplets with given sum in a Doubly Linked List
Given a sorted doubly linked list and an integer X, the task is to print all the quadruplets in the doubly linked list whose sum is X.Examples:Input: LL: -3 ? 1 ? 2 ? 3 ? ...
Read More
Linked List
Data Structures
Pointers
doubly linked list
DSA
Maximize sum of odd-indexed array elements by repeatedly selecting at most 2*M array elements from the beginning
Given an array arr[] consisting of N integers and an integer M (initially 1), the task is to find the maximum sum of array elements chosen by Player A when two players A a...
Read More
Arrays
Dynamic Programming
Mathematical
Game Theory
Recursion
Memoization
matrix-chain-multiplication
DSA
Count ways to represent a number as sum of perfect squares
Given an integer N, the task is to find the number of ways to represent the number N as sum of perfect squares.Examples:Input: N = 9Output: 4Explanation:There are four way...
Read More
Searching
Mathematical
Recursion
maths-perfect-square
DSA
Number of M-length sorted arrays that can be formed using first N natural numbers
Given two numbers N and M, the task is to find the number of sorted arrays that can be formed of size M using first N natural numbers, if each number can be taken any numb...
Read More
Dynamic Programming
Mathematical
Recursion
Memoization
Natural Numbers
DSA
Maximum Sum Subsequence made up of consecutive elements of different parity
Given an array arr[] consisting of N integers, the task is to find the maximum sum of a non-empty subsequence such that each pair of consecutive terms is of different pari...
Read More
Arrays
Dynamic Programming
Mathematical
subsequence
DSA
Find the maximum between N and the number formed by reversing 32-bit binary representation of N
Given a positive 32-bit integer N, the task is to find the maximum between the value of N and the number obtained by decimal representation of reversal of binary represent...
Read More
Bit Magic
Mathematical
binary-representation
DSA
Shortest path for a thief to reach the Nth house avoiding policemen
Given an unweighted graph and a boolean array A[ ], where if the ith index of array A[ ] denotes if that node can be visited (0) or not (1). The task is to find the shorte...
Read More
Arrays
Graph
Queue
Searching
BFS
DSA
Find a point whose sum of distances from all given points on a line is K
Given a sorted array arr[] consisting of N integers, representing points on a line and an integer K, the task is to find any point P between the first and last point such ...
Read More
Arrays
Binary Search
Searching
Sorting
Mathematical
DSA
Maximize ropes of consecutive length possible by connecting given ropes
Given an array A[ ] of size N where each array element represents the length of a rope, the task is to find the number of ropes of consecutive length that can be created b...
Read More
Arrays
Greedy
Sorting
Mathematical
DSA
1
...
5898
5899
5900
...
11239