Frage im Vorstellungsgespräch bei Arista Networks

Implement a stack without using memcpy() in C

Antwort im Vorstellungsgespräch

Anonym

18. Feb. 2022

Borrow logic from smart pointers in C++ and use reference counts and use that fir ptr[-1] so you can signal that memory is free in case you pop stale data. Kind of a trick question