Apple Onsite

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2020-03-15Added By Anonymous
Source: Link

Apple onsite interview question.


Design a class which implements following functions:


func insertOrReplace(_ item: Int, at index: Int)

func getMinIndex(of element: Int) -> Int

Comments