aishwaryaneelakandan / Assignment

1 stars 1 forks source link

task1118 #21

Open ravi-priya opened 3 years ago

ravi-priya commented 3 years ago

=====================================================================================================

11/18

write methods and tests for the following.

  1. You are given an array with duplicates. You have to sort the array with decreasing frequency of elements. If two elements have the same frequency, sort them by their actual value in increasing order. Ex: [2 3 5 3 7 9 5 3 7] Output: [3 3 3 5 5 7 7 2 9]

  2. Given 2 sorted lists that are of even and equal size, output the median. If there is no middle number, return the average of the two middle numbers

  3. Implement a sorting algorithm for a single linked list.

  4. Given a sorted array of integers, write a function that will return the number with the biggest number of repetitions.

aishwaryaneelakandan commented 3 years ago

https://github.com/aishwaryaneelakandan/Assignment/tree/master/Assignment/src

aishwaryaneelakandan commented 3 years ago

https://github.com/aishwaryaneelakandan/Assignment/tree/master/Assignment/src