## Python Program to find top two maximum number in array

In this tutorial, you will learn how to write Python program to find the first top two largest/maximum element in python. To find two maximum number in python, first we will sort our array in ascending order (you can also implement it by sorting in descending order). Now select last two distinct element which will … Read more

## C Program to find highest frequency element in array

In this tutorial we will learn writing C Program to find highest frequency element in array. Our program will print the array element which have repeated most times. There is one edge case where two elements might repeat same time. This type of case we are not handling in our code. C Program to find … Read more

## C program to perform right rotation in array by 2 positions

Performing right rotation in array means, our last element will become first element and shift each array elements towards right by one. Here we are going to perform right rotation by 2 times means we will shift each array element toward right two times. Our problem statement Suppose we have an array that has elements a={1,2,3,4,5}. … Read more

## C program to perform left rotation of array elements by two positions

Performing left rotation in array means, our first element will become last element and shift each array elements towards left by one. Here we are going to perform left rotation by 2 times means we will shift each array element toward left two times. Our problem statement Suppose we have an array that has elements a={1,2,3,4,5}. … Read more

## C Program to print all odd numbers in array

In this tutorial, we will learn a writing program in c to print all odd numbers present in an array. As we know that odd number is a number that is not divisible by 2. Our logic will be like, iterate each array element and check if it is divisible by 2 or not. If … Read more

## C Program to print all even numbers in array

In this tutorial, we will learn a writing program in c to print all even numbers in an array. As we know that even number is divisible by 2. Here we will iterate each array element and check it is divisible by 2 or not. If it is divisible by 2 then we will print … Read more

## C Program to find sum of array elements

To write a program in C to find sum of array elements, We will just iterate the array elements one by one using for loop or while loop and add each element. This program is very easy and logic is also very simple. Program in C to find the sum of array elements Output

## C Program to delete element from array at given index

In this tutorial, we are going to learn to write C Program to delete element from an array at the given index. To delete the element from the given index, we will iterate the array and to the given index. Now we will just shift each element towards the left one by one and decrease … Read more