Deeplite interview question

Find top k elements(simply copy paste solution from geeks for geeks) Find majority element(leetcode question but interviewer wanted exact solution from geeks for geeks)

Interview Answer

Anonymous

16 Aug 2022

Did my best to answer the questions illustrating the process. But it seemed,he had made up his mind already