Goldman Sachs logoGoldman Sachs
CodingMembers

Implement a Deque

Members only

Implement a string deque from scratch with addFirst/addLast, removeFirst/removeLast, peekFirst/peekLast, and getSize, all O(1). A doubly linked list is the expected backing structure; a Python list ma...

SWE
linked-list
queue
data-structure
easy
Frequency
Single report
Last asked
2026-06-18
Stage
phone-screen

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...