## Sieve of Eratosthenes

Get all prime number for the given number using Sieve of Eratosthenes algorithm For example: Input8 Output2, 3, 5, 7 Solution:

## Prime factors of integer

Write a program to get the prime factor of given number. for example: Solution:

## Given number are Pythagorean Triplet

Three numbers can be said as Pythagorean Triplet when a>b>c and a2 + b2 = c2. Write a program to determine the given numbers set…

## Equilibrium index of an array

Equilibrium index is an index when the sum of elements at lower indexes is equal to the sum of elements at higher indexes. Write a…

## Print a rectangular frame around array values

Write a program to accept the list of strings and prints them, one per line, in a rectangular frame. For example: Solution:

## Number to integer array

Write a program to accept the number and returns a list of its digits. For example Solution:

## Stooge Sort

Write a program to demonstrate stooge sort algorithm. Solution:

## Priority Queue using Heap

Write a programme to demonstrated Priority Queue using Heap Solution:

## Reversing a Queue

Write a program to reversing a queue element Solution:

## First In First Out(FIFO) Implementation

Write a program to demonstrate First In First Out(FIFO) approach. Solution: