Posts

Showing posts from November, 2020

3. Find the "Kth" max and min element of an array.write a program in any language?

2.Find the maximum and minimum element in an array?write a program in any language?

1.Write a program to reverse an array or string

  Given an array (or string), the task is to reverse the array/string. Examples :     Input : arr[] = {1,2,3,4,5,6} Output : arr[] = {6,5,4,3,2,1} Input : arr[] = {p,r,o,g,r,a,m} Output : arr[] = {m,a,r,g,o,r,p}