Stack
Medium · Data Structures
Implement push/pop/peek. Pop/peek on empty return 0 and not-ok. runStack ops: "push N", "pop", "peek". Returns popped/peeked value then 1/0 for ok.
Next: Chunk an Array
Medium · Data Structures
Implement push/pop/peek. Pop/peek on empty return 0 and not-ok. runStack ops: "push N", "pop", "peek". Returns popped/peeked value then 1/0 for ok.
Next: Chunk an Array