Computer Science
Related Questions
Write a program to find the largest and the second largest elements in a given list of elements.
Write a program to read a list of n integers and find their median.
Note: The median value of a list of values is the middle one when they are arranged in order. If there are two middle values, then take their average.
Hint: Use an inbuilt function to sort the list.
Which sorting is more efficient—bubble sort or insertion sort? Give reason.
Write a program to read a list of elements. Modify this list so that it does not contain any duplicate elements, i.e., all elements occurring multiple times in the list should appear only once.