Tutorials
Courses
Go Premium
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.0K+ articles
Misc
7.8K+ articles
Mathematical
5.1K+ articles
Geometric
521+ articles
series
515+ articles
number-theory
424+ articles
school-programming
240+ articles
Constructive Algorithms
215+ articles
Modular Arithmetic
207+ articles
math
137+ posts
Recent Articles
Popular Articles
Convenience Sampling Method
Last Updated: 23 July 2025
Convenience sampling is a non-probability sampling technique widely used in research due to its simplicity and ease of implementation. Unlike probability sampling methods,...
read more
Picked
Mathematics
math
Toggle Bulb Switcher
Last Updated: 18 July 2024
Imagine a row of N bulbs where all initially turned off. You perform a series of operations to toggle the state of these bulbs. On the first round, you turn on every bulb....
read more
Mathematical
Picked
DSA
Microsoft
math
Greater Than Symbol| Meaning and Examples
Last Updated: 23 July 2025
Greater Than Symbol is a mathematical expression used to express the inequalities and comparisons between two numbers. It is denoted by the sign '' that says the number on...
read more
Picked
Mathematics
School Learning
Class 6
math
Maths-Class-6
Count Weird Triplets
Last Updated: 26 February 2024
Given an array A[] of integers. Your task is to output the count of triplets such that in each triplet, there can be at most 2 same elements.Examples: Input: A[] = [5, 5, ...
read more
Combinatorial
DSA
combinatorics
math
python-dict
Scala-Arrays
Geeks Premier League 2023
Array Parity Transformation
Last Updated: 31 January 2024
Given an array A[] of length N (N is even N=2).Where half elements are odd and the other half are even. You can apply the below operation (possibly zero time):Select two ...
read more
Mathematical
Geeks Premier League
DSA
math
Geeks Premier League 2023
Solving Binary String Modulo Problem
Last Updated: 17 January 2024
Given a string "s" and an integer "m" your objective is to calculate the remainder "r" when the decimal value of binary string "s" is divided by "m".Examples: Input: s = "...
read more
Bit Magic
Geeks Premier League
DSA
Basic Coding Problems
math
Algorithms-Bit Algorithms
Geeks Premier League 2023
Minimum Move Required To Fit The Painting in Frame.
Last Updated: 13 December 2023
Consider a Painting and a Frame having length and breadth as L1, B1 and L2, B2 respectively. Then your task is to output minimum number of moves required to fit that paint...
read more
Greedy
DSA
math
Greedy Algorithms
Geeks Premier League 2023
Geek's Plants
Last Updated: 23 July 2025
Geek wants to water n plants (numbered from 0 to n-1), where planti requires arr[i] units of water daily. Geek has to use buckets of the same size and can not use a bucket...
read more
Mathematical
DSA
GCD-LCM
math
Minimize the Sum of Absolute Costs of an Array Optimally
Last Updated: 18 January 2024
Given an array arr[] of costs, your task is to minimize the sum of the absolute differences between consecutive costs by performing following operation at most once. Opera...
read more
DSA
prefix-sum
math
Data Structures-Array
suffix-sum
Find the array B[] from A[] according to the given conditions
Last Updated: 11 January 2024
Given an array X[] of length N, having all elements less than or equal to M, the task is to print an array let's say Y[] of the same length following the given conditions:...
read more
DSA
GCD-LCM
math
Arrays
number-theory
DSA-Blogs
Geeks Premier League 2023
Find the minimum number of distinct Substrings formed by 0s in Binary String
Last Updated: 05 December 2023
Given two integers N and M, the task is to output the minimum number of different substrings that can be formed using the Binary String of length N having M number of set ...
read more
Mathematical
Geeks Premier League
DSA
binary-string
math
Greedy Algorithms
Geeks Premier League 2023
Minimum Breaks to make the Array sorted
Last Updated: 07 November 2023
Given an array arr[] of size N, the task is to return the minimum number of operations to make the array sorted (in non-decreasing order) by performing the following opera...
read more
Mathematical
Geeks Premier League
DSA
math
Arrays
Greedy Algorithms
Geeks Premier League 2023
Minimum Jumps with Specific NUM Value
Last Updated: 03 December 2023
Given an array A[] of N integers, You have to move from index 1 to N by doing jumps. Return the value of NUM (NUM is defined as a number that has a power of 2 and remains ...
read more
Geeks Premier League
DSA
Arrays
math
Geeks Premier League 2023
Finding the Missing Digit in the Largest Perfect Square
Last Updated: 29 November 2023
Given a perfect square number with one missing digit represented by an underscore (_). Find the missing digit that when inserted, creates the largest perfect square.Exampl...
read more
Mathematical
Geeks Premier League
DSA
math
Find 0 with Farthest 1s in a Binary Array
Last Updated: 22 March 2025
Given a string (seats) of 1s and 0s, where 1 represents a filled seat and 0 represents an empty seat in a row. Find an empty seat with maximum distance from an occupied se...
read more
DSA
MakeMyTrip
Data Structures
math
strings
1
2
3
4
...
10
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !