Square (Block) logoSquare (Block)
CodingMembers

Pick Two Books That Use a Voucher Exactly With Least Weight

Members only

A shopping-flavoured coding problem about choosing a pair of items that hit a budget exactly while keeping some second quantity as low as possible. Interviewers look at how you improve on the obvious pairwise search and how carefully you treat ties and missing answers.

SWE
easy
array
hashmap
sorting
Frequency
Single report
Last asked
—
Stage
phone-screen

Members get

  • Full problem statement
  • 3 progressive hints
  • Step-by-step approach
  • Full solution with code
  • 3 common pitfalls
  • 6 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...