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.0K+ articles
Misc
7.7K+ articles
Mathematical
5.1K+ articles
Strings
2.1K+ articles
Amazon
1.9K+ articles
number-digits
612+ articles
rotation
415+ articles
divisibility
294+ articles
Modular Arithmetic
207+ articles
large-numbers
107+ posts
Recent Articles
Popular Articles
Large Numbers
Last Updated: 23 July 2025
Large numbers extend beyond our everyday figures, offering insights into math and science. They help us understand vast concepts like the number of stars or distances in t...
read more
Mathematics
School Learning
large-numbers
Maths
Compute nCr % p | Set 4 (Chinese Remainder theorem with Lucas Theorem)
Last Updated: 23 July 2025
Given three numbers n, r and p, the task is to compute the value of nCr % p.Note: p is a square-free number and the largest prime factor of p ≤ 50.Examples:Input: n = 10, ...
read more
DSA
Modular Arithmetic
large-numbers
Permutation and Combination
Find Largest and smallest number in an Array containing small as well as large numbers
Last Updated: 30 May 2024
Given an array arr[] of N small and/or large numbers, the task is to find the largest and smallest number in this array.Examples:Input: N = 4, arr[] = {5677856, 6578567453...
read more
Strings
Sorting
DSA
Arrays
large-numbers
Python3 Program for Longest subsequence of a number having same left and right rotation
Last Updated: 23 July 2025
Given a numeric string S, the task is to find the maximum length of a subsequence having its left rotation equal to its right rotation.Examples:Input: S = "100210601"Outpu...
read more
Python
subsequence
rotation
large-numbers
C++ Program To Subtract Two Numbers Represented As Linked Lists
Last Updated: 23 July 2025
Given two linked lists that represent two large positive numbers. Subtract the smaller number from the larger one and return the difference as a linked list. Note that the...
read more
Linked List
C++ Programs
DSA
Amazon
large-numbers
maths-polynomial
Linked-List-Polynomial
Java Program To Subtract Two Numbers Represented As Linked Lists
Last Updated: 23 July 2025
Given two linked lists that represent two large positive numbers. Subtract the smaller number from the larger one and return the difference as a linked list. Note that the...
read more
Linked List
Java Programs
DSA
Amazon
large-numbers
maths-polynomial
Linked-List-Polynomial
Python Program To Subtract Two Numbers Represented As Linked Lists
Last Updated: 23 July 2025
Given two linked lists that represent two large positive numbers. Subtract the smaller number from the larger one and return the difference as a linked list. Note that the...
read more
Linked List
Python Programs
DSA
Amazon
large-numbers
maths-polynomial
Linked-List-Polynomial
Javascript Program To Subtract Two Numbers Represented As Linked Lists
Last Updated: 23 July 2025
Given two linked lists that represent two large positive numbers. Subtract the smaller number from the larger one and return the difference as a linked list. Note that the...
read more
JavaScript
Amazon
large-numbers
maths-polynomial
Linked-List-Polynomial
C++ Program for Longest subsequence of a number having same left and right rotation
Last Updated: 23 July 2025
Given a numeric string S, the task is to find the maximum length of a subsequence having its left rotation equal to its right rotation.Examples:Input: S = "100210601"Outpu...
read more
C++
subsequence
rotation
large-numbers
Java Program for Longest subsequence of a number having same left and right rotation
Last Updated: 23 July 2025
Given a numeric string S, the task is to find the maximum length of a subsequence having its left rotation equal to its right rotation.Examples:Input: S = "100210601"Outpu...
read more
Java
subsequence
rotation
large-numbers
Javascript Program for Longest subsequence of a number having same left and right rotation
Last Updated: 23 July 2025
Given a numeric string S, the task is to find the maximum length of a subsequence having its left rotation equal to its right rotation.Examples:Input: S = "100210601"Outpu...
read more
JavaScript
subsequence
rotation
large-numbers
C++ Program to Count rotations divisible by 4
Last Updated: 24 July 2025
Given a large positive number as string, count all rotations of the given number which are divisible by 4.Examples:Input: 8Output: 1Input: 20Output: 1Rotation: 20 is divis...
read more
C++
divisibility
number-digits
rotation
large-numbers
Java Program to Count rotations divisible by 4
Last Updated: 24 July 2025
Given a large positive number as string, count all rotations of the given number which are divisible by 4.Examples:Input: 8Output: 1Input: 20Output: 1Rotation: 20 is divis...
read more
Java
divisibility
number-digits
rotation
large-numbers
Python3 Program to Count rotations divisible by 4
Last Updated: 23 July 2025
Given a large positive number as string, count all rotations of the given number which are divisible by 4.Examples:Input: 8Output: 1Input: 20Output: 1Rotation: 20 is divis...
read more
Python
divisibility
number-digits
rotation
large-numbers
PHP Program to Count Rotations Divisible by 4
Last Updated: 23 July 2025
Given a large positive number as string, count all rotations of the given number which are divisible by 4.Examples:Input: 8Output: 1Input: 20Output: 1Rotation: 20 is divis...
read more
PHP
divisibility
number-digits
rotation
large-numbers
1
2
3
4
5
6
7
8