A Perfect square is a whole number which is produced by multiplying two equal integers. In other words, a number which has a square root as an integer is called a Perfect square. Examples are 1, 4, 9, 25, .. and such. For any given number, we would need to find if there is a number which multiplied by itself results in the same number.

This can be implemented in two ways: one by looping till half the number and check if at each iteration multiplying the counter with itself results in the number.

```
public static bool IsPerfectSquare(int n)
{
for (int i = 1; i <= n / 2; i++)
{
if (i * i == n)
{
return true;
}
}
return false;
}
```

Or by using the Math library and find the square root of the number. Then see if the obtained square root is an integer or not.

```
public static bool IsPerfectSquareBySqRoot(int n)
{
double root = Math.Sqrt(n);
if (root - Math.Floor(root) == 0)
{
return true;
}
return false;
}
```

Special Numbers Loops • Added 8 months ago

Find if the given number is a Perfect Number

Special Numbers
Loops

Find if the given number is a Palindrome

Special Numbers
Loops

Find if the given number is an Armstrong Number

Special Numbers
Loops

Find if the given number is a Perfect Square

Special Numbers
Loops

Find all the Fibonacci numbers for a given limit

Special Numbers
Loops

Compute and generate a compressed string for a given string containing repetitions

Loops
Strings

Find all possible natural numbers below a given limit such that a3+b3 = c3+d3

Loops

Find all the pairs in a given ordered set of numbers whose sum is equal to a given input sum

Loops

Find all the pairs in a given unordered set of numbers whose sum is equal to a given input sum

Loops

Sort the given unordered set of Binary digits

Loops
Sorting

Role-based Access Control in AWS - Assuming Roles and accessing via ASP.NET Core

AWS
ASP.NET Core

Top 10 LINQ methods we use in our everyday C# Development

C# Concepts

Implementing a Worker Service in ASP.NET Core

ASP.NET Core

Understanding Time Complexity and Big O notation in Algorithms

Algorithms

Creating ASP.NET Core Microservices in AWS using SAM and CloudFormation

AWS
ASP.NET Core