Data Structure
Java
Python
HTML
Interview Preparation
Interview Prep
Tutorials
Tracks
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.2K+ articles
Misc
7.7K+ articles
Mathematical
5.1K+ articles
Arrays
4.2K+ articles
Greedy
1.4K+ articles
number-digits
612+ articles
Combinatorial
460+ articles
Pattern Searching
401+ articles
permutation
257+ articles
Natural Numbers
131+ posts
Recent Articles
Popular Articles
Factors of 12
Last Updated: 23 July 2025
Factors of 12 are 1, 2, 3, 4, 6, and 12. Factors of any number are the numbers that can be multiplied together to give the result of the number itself. In other words, Fac...
read more
Picked
Mathematics
School Learning
Numbers
Natural Numbers
Math-Concepts
Factors-Of
C++ Program to Maximize count of corresponding same elements in given permutations using cyclic rotations
Last Updated: 23 July 2025
Given two permutations P1 and P2 of numbers from 1 to N, the task is to find the maximum count of corresponding same elements in the given permutations by performing a cyc...
read more
C++
permutation
rotation
Natural Numbers
Java Program to Maximize count of corresponding same elements in given permutations using cyclic rotations
Last Updated: 23 July 2025
Given two permutations P1 and P2 of numbers from 1 to N, the task is to find the maximum count of corresponding same elements in the given permutations by performing a cyc...
read more
Java
permutation
rotation
Natural Numbers
Python3 Program to Maximize count of corresponding same elements in given permutations using cyclic rotations
Last Updated: 23 July 2025
Given two permutations P1 and P2 of numbers from 1 to N, the task is to find the maximum count of corresponding same elements in the given permutations by performing a cyc...
read more
Python
permutation
rotation
Natural Numbers
Javascript Program to Maximize count of corresponding same elements in given permutations using cyclic rotations
Last Updated: 23 July 2025
Given two permutations P1 and P2 of numbers from 1 to N, the task is to find the maximum count of corresponding same elements in the given permutations by performing a cyc...
read more
JavaScript
permutation
rotation
Natural Numbers
C++ Program for Ways to sum to N using Natural Numbers up to K with repetitions allowed
Last Updated: 27 January 2022
Given two integers N and K, the task is to find the total number of ways of representing N as the sum of positive integers in the range [1, K], where each integer can be c...
read more
Dynamic Programming
Mathematical
Combinatorial
C++ Programs
DSA
Permutation and Combination
Natural Numbers
Maximum set of number from the first N natural numbers whose Bitwise AND is positive
Last Updated: 23 July 2025
Given a positive integer N, the task is to find the maximum set of numbers from the first N natural numbers whose Bitwise AND is positiveExamples:Input: N = 7Output: 4Expl...
read more
DSA
Natural Numbers
Minimize operations to delete all elements of permutation A by removing a subsequence having order as array B
Last Updated: 23 July 2025
Given two permutation arrays A[] and B[] of the first N Natural Numbers, the task is to find the minimum number of operations required to remove all array elements A[] suc...
read more
Misc
Mathematical
DSA
Arrays
permutation
LCS
Natural Numbers
Count of triplets till N whose product is at most N
Last Updated: 23 July 2025
Given a positive integer N, the task is to find the number of triplets (A, B, C) from the first N Natural Numbers such that A * B * C ≤ N.Examples:Input: N = 2Output: 4Exp...
read more
DSA
Natural Numbers
Count of Arrays of size N having absolute difference between adjacent elements at most 1
Last Updated: 03 October 2025
Given a positive integer M and an array arr[] of size N and a few integers are missing in the array represented as -1, the task is to find the count of distinct arrays aft...
read more
DSA
permutation
Natural Numbers
Lexicographically smallest permutation of [1, N] based on given Binary string
Last Updated: 23 July 2025
Given a binary string S of size (N - 1), the task is to find the lexicographically smallest permutation P of the first N natural numbers such that for every index i, if S[...
read more
Strings
Greedy
Mathematical
DSA
Arrays
permutation
binary-string
lexicographic-ordering
Natural Numbers
Mean of minimum of all possible K-size subsets from first N natural numbers
Last Updated: 23 July 2025
Given two positive integers N and K, the task is to find the mean of the minimum of all possible subsets of size K from the first N natural numbers.Examples:Input: N = 3, ...
read more
Mathematical
Combinatorial
DSA
combinatorics
subset
maths-mean
Natural Numbers
Find all possible values of K such that the sum of first N numbers starting from K is G
Last Updated: 23 July 2025
Given a positive integer G, the task is to find the number of values of K such that the sum of the first N numbers starting from K is G i.e., (K + (K + 1) + ... + (K + N -...
read more
Mathematical
C++ Programs
DSA
Natural Numbers
Natural Numbers
Last Updated: 08 October 2025
Natural numbers are the set of numbers that we use for counting and ordering things. They start from 1 and end at infinity. NaturalNumbers = {1, 2, 3, 4, 5, 6, … ∞} Charac...
read more
Picked
Mathematics
School Learning
Maths MAQ
Natural Numbers
Number System - MAQ
Math-Concepts
Modify array to a permutation of consecutive numbers of longest length by at most K insertions
Last Updated: 23 July 2025
Given an array arr[] of length N and an integer K, the task is to find the maximize the length of the array by appending at most K elements such that the array becomes a p...
read more
Greedy
Sorting
Mathematical
DSA
Arrays
permutation
array-rearrange
Natural Numbers
1
2
3
4
5
6
7
8
9