Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1
Question on Array:
1. Count the number of Occurrence of a number x
2. Last Occurrence of number take number from user 3. Count the number of elements strictly greater than x 4. Check array is sorted. 5. Find largest and smallest. 6. Find Second Smallest and Largest in the array. 7. Find kth Largest and kth Smallest. 8. Find total number of pairs in the array whose sum is equal to the given value x (target is given). 9. Find total number of triplets in the array whose sum is equal to the given value x. 10.Find Unique number in an array where all the elements are being repeated twice with one value being unique. (Only positive elements in the array). 11.Return the first value that is repeating in the array, if no value is repeating just return -1. 12.Return last value Repeat else return -1. 13.Swap two values in different methods 14.Reverse Array (with or without extra space) 15.Rotate array k times (with or without extra space) 16.Element is present or not. Take Query from user 17.Sort 0 and 1 array 18.Bubble Sort. 19.Insertion Sort. 20.Merger Sort.