Insert, Delete, GetRandom O(1) With Duplicates (LC 381)
Also reported as LeetCode 381
Phone ScreenLinkedInLast reported October 2026Medium Frequency
Reported
5× across candidate reports
First seen
January 2026
Last reported
October 2026
Reported outcome
unknown
Problem Overview
LinkedIn phone-screen question, reconstructed from 5 candidate reports (January 2026 to October 2026). Candidates reported 2 follow-ups. The write-up includes a Python solution that passes 10 test cases.
2 candidate-reported follow-ups — the probes candidates report being asked, with the trigger for each
The full problem statement — full requirements, constraints, and edge cases
Approach and trade-offs — what passing candidates did, and the mistakes that sink people
Unlock the full LinkedIn catalog
Full problem statements, candidate-reported follow-ups, and walkthroughs — for every LinkedIn question.