Python Program to find top two maximum number in array

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

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

C Program To Perform Right Rotation In Array By Two 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

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 delete element from array at given index

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