Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.4K+ articles
Misc
7.7K+ articles
Mathematical
5.1K+ articles
Arrays
4.2K+ articles
Searching
1.0K+ articles
Maths
649+ articles
Prime Number
615+ articles
number-theory
424+ articles
divisibility
294+ articles
maths-perfect-square
114+ posts
Recent Articles
Popular Articles
List of Perfect Square Numbers from 1 to 100
Last Updated: 23 July 2025
A perfect square is an integer that can be expressed as the square of another integer. In mathematical terms, a number n is a perfect square if there exists an integer m s...
read more
Mathematics
School Learning
maths-perfect-square
Perfect Square Interesting Facts
Last Updated: 23 July 2025
Here are some interesting facts about Perfect Squares or Square Numbers.If the original number is even, the perfect square will also be even. Similarly, if the number is o...
read more
Mathematics
maths-perfect-square
Is 125 a perfect square?
Last Updated: 27 August 2024
No, 125 is not a perfect square.125 can be written as the sum of two squares in two distinct ways: 125 = 102 + 52 or 112 + 22. The square root of 125 is represented as 5 √...
read more
Mathematics
maths-perfect-square
Find all pairs such that (X, Y) such that X^2 = Y and X < Y
Last Updated: 23 July 2025
Given an array arr[] of positive integers, the task is to find the count of all the pairs (X, Y) in the array such that X2=Y and YX.Examples:Input: arr[] = {2, 4, 8, 16, 9...
read more
DSA
Arrays
maths-perfect-square
Map
C++ Program to Generate a matrix having sum of secondary diagonal equal to a perfect square
Last Updated: 23 July 2025
Given an integer N, the task is to generate a matrix of dimensions N x N using positive integers from the range [1, N] such that the sum of the secondary diagonal is a per...
read more
C++
rotation
array-rearrange
maths-perfect-square
Java Program to Generate a matrix having sum of secondary diagonal equal to a perfect square
Last Updated: 23 July 2025
Given an integer N, the task is to generate a matrix of dimensions N x N using positive integers from the range [1, N] such that the sum of the secondary diagonal is a per...
read more
Java
rotation
array-rearrange
maths-perfect-square
Python3 Program to Generate a matrix having sum of secondary diagonal equal to a perfect square
Last Updated: 23 July 2025
Given an integer N, the task is to generate a matrix of dimensions N x N using positive integers from the range [1, N] such that the sum of the secondary diagonal is a per...
read more
Python
rotation
array-rearrange
maths-perfect-square
Javascript Program to Generate a matrix having sum of secondary diagonal equal to a perfect square
Last Updated: 23 July 2025
Given an integer N, the task is to generate a matrix of dimensions N x N using positive integers from the range [1, N] such that the sum of the secondary diagonal is a per...
read more
JavaScript
rotation
maths-perfect-square
JavaScript-Program
Find sum of all odd perfect squares in the range [L, R]
Last Updated: 10 December 2021
Given two integers L and R. The task is to find the sum of all the odd numbers which are perfect square in the range [L, R].Examples:Input: L = 1, R = 9Output: 10Explanati...
read more
Mathematical
DSA
maths-perfect-square
maths-power
Find N-th term in the series 0, 4, 18, 48, 100 ...
Last Updated: 06 December 2021
Given a series 0, 4, 18, 48, 100 . . . and an integer N, the task is to find the N-th term of the series.Examples:Input: N = 4Output: 48Explanation: As given in the sequen...
read more
Pattern Searching
Mathematical
DSA
maths-perfect-square
maths-cube
Sequence and Series
Sort a linked list after converting elements to their squares
Last Updated: 23 July 2025
Given a non-decreasing linked list. The task is to square the elements of the linked list and arrange them in sorted order without using any extra space.Examples:Input: 1-...
read more
DSA
maths-perfect-square
Find all combinations of perfect squares that sum up to N with duplicates
Last Updated: 23 July 2025
Given a positive integer N, the task is to print all possible sum of perfect squares such that the total sum of all perfect squares is equal to N.Example:Input: N=8Output:...
read more
Backtracking
Mathematical
Combinatorial
Recursion
DSA
maths-perfect-square
Count of pair of integers (x , y) such that difference between square of x and y is a perfect square
Last Updated: 23 July 2025
Given an integer N. The task is to find the number of pairs of integers (x, y) both less than N and greater than 1, such that x2 - y is a square number or 0.Example:Input:...
read more
Mathematical
DSA
maths-perfect-square
Find pair of consecutive Perfect Squares with difference K
Last Updated: 23 July 2025
Given an integer K, the task is to find two consecutive perfect squares whose difference is K. If there don't exist any such pairs of numbers, then print -1.Examples:Input...
read more
Mathematical
DSA
maths-perfect-square
Maximize count of unique Squares that can be formed with N arbitrary points in coordinate plane
Last Updated: 23 July 2025
Given a positive integer N, the task is to find the maximum number of unique squares that can be formed with N arbitrary points in the coordinate plane.Note: Any two squar...
read more
Greedy
Geometric
Blogathon
Blogathon-2021
DSA
maths-perfect-square
1
2
3
4
5
6
7
8