โ† HashedIn questions

Buy two chocolates

Filed under HashedIn

The question

Given an array of chocolate prices and an initial amount of money, determine the remaining money after buying two chocolates at the lowest cost, or return the initial amount if two cannot be bought.

No write-up yet. Related questions below have one.

Related HashedIn questions

Collected from public candidate posts and coding forums. Updated Nov 2026.