![4 elements 3 4 elements 3](https://slideplayer.com/7018529/24/images/slide_1.jpg)
The array after segregation is: 0 0 0 0 1 1 1 1 1ĩ6. Write a program in C to segregate 0s and 1s in an array. The contigious subarray of length 4 and their maximum value are:ĩ5. Write a program in C to find the maximum for each and every contigious subarray of size k from a given array. N.B.: If positive numbers are more they appear at the end and for also negative numbers, they too appear in the end of the array.ĩ4. Write a program in C to rearrange positive and negative numbers alternatively in a given array. The appearence of elements in the array are not consecutive.ĩ3. The appearence of elements in the array are consecutive. Write a program in C that checks whether the elements in an unsorted array appears consecutively or not. The minimum length of unsorted subarray which makes the given array sortedĩ2. Sorting this subarray makes the whole array sorted. Write a program in C to find the minimum length of subarray such that, Go to the editorĩ1.Given an unsorted array of specific size. Write a program in C to rearrange the given array so that arr becomes arr]. Given an array of size n such that every element is in the range from 0 to n-1. Write a program in C to find maximum size square sub-matrix with all 1s. The maximum differcences between two position of array index is: 3Ĩ9. M = 3, n = 6, arr1 = 2 arr1 = 4 difference = 3 M = 0, n = 2, arr1 = 7 arr1 = 8 difference = 2 Given an array arr, find the maximum j – i such that arr > arr Input 5 elements in the array (value must be array from a given array. Write a program in C to find the second smallest element in an array. The Second largest element in the array is : 6ġ7. Write a program in C to find the second largest element in an array. Write a program in C to delete an element at desired position from an array. Input the Position, where the value to be inserted :2Īfter Insert the element the new list is :ġ5.
![4 elements 3 4 elements 3](http://hd.wallpaperswide.com/thumbs/4_elements-t2.jpg)
Input 4 elements in the array in ascending order: Write a program in C to insert New value in the array (unsorted list ). Process exited after 39.33 seconds with return value 10ġ4. Input 5 elements in the array in ascending order: Write a program in C to insert New value in the array (sorted list ). Go to the editorĮlements of the array in sorted descending order:ġ3. Write a program in C to sort elements of the array in descending order. Go to the editorĮlements of array in sorted ascending order:ġ2. Write a program in C to sort elements of array in ascending order. Input the number of elements to be stored in the array :5ġ1. Write a program in C to separate odd and even integers in separate arrays. Write a program in C to find the maximum and minimum element in an array. The frequency of all elements of an array :ĩ. Write a program in C to count the frequency of each element of an array. Input the number of elements to be stored in the second array :3Ĩ. Input the number of elements to be stored in the first array :3 Write a program in C to merge two arrays of same size sorted in decending order. The unique elements found in the array are:ħ. Input the number of elements to be stored in the array: 4 Write a program in C to print all unique elements in an array. Total number of duplicate elements found in the array is : 1Ħ. Write a program in C to count a total number of duplicate elements in an array. The elements copied into the second array are :ĥ. The elements stored in the first array are : Write a program in C to copy the elements of one array into another array. Sum of all elements stored in the array is : 15Ĥ. Input the number of elements to be stored in the array :3 Write a program in C to find the sum of all elements of the array. The values store into the array in reverse are :ģ. Input 3 number of elements in the array : Input the number of elements to store in the array :3 Write a program in C to read n number of values in an array and display it in reverse order. Go to the editorĮlements in array are: 1 1 2 3 4 5 6 7 8 9Ģ. Write a program in C to store elements in an array and print it.