CtCI-6th-Edition-JavaScript icon indicating copy to clipboard operation
CtCI-6th-Edition-JavaScript copied to clipboard

Updated Stack of plates logic in chapter 3

Open Gokulnath31 opened this issue 2 years ago • 0 comments

Changes made

  • Used array.prototype.at for fetching recent stack
  • Handled special case where a certain stack in stack set becomes empty when popAt is used

Gokulnath31 avatar Jan 16 '24 13:01 Gokulnath31