PayPal logoPayPal
CodingMembers

Stack with Constant-Time Minimum Lookup

Members only

A data-structure design question: extend a plain stack so that an extra query for the smallest stored element is as cheap as the normal operations. The interesting part is what happens to that answer after removals, and how you justify your design's correctness and space cost.

SWE
easy
stack
data-structure
complexity-analysis
python
Frequency
Single report
Last asked
—
Stage
onsite-coding

Members get

  • Full problem statement
  • 3 progressive hints
  • Step-by-step approach
  • Full solution with code
  • 5 talking points
  • 5 follow-up questions with answer directions
  • Preparation drills

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...