2021 Expedia Group Graduate Program| SDE-1 | Online round - HackerRank

Question · Posted Apr 2021

There were total of 14 questions. 2 Coding question and 12 MCQ type questions on DS, OOPS, Os Time : 90 Mins Coding Question : 1 Minimum number of distinct elements after removing m items Given an array of items, an i-th index element denotes the item id's, and given a number m, the task is to remove m elements such that there should be minimum distinct id's left. Print the number of distinct id's. Example: Input : arr[] = ...

The full answer & interview discussion are available to premium members.

Log in Create a free account