Deshaw Inc Interview Question
SDE1sCountry: India
Interview Type: Written Test
Answer - implement garbage collection by reachability like in JVM. Make BFD or DFS from stack by the references, mark objects. All unmarcked objects are unreachable so your compaction gc will be able to collect them and reuse this space. Is it enough?
Maybe the question was to design datastructure for heap(PermgGen,Young,Tenured,Old,Eden etc.)?
please,clafiry the question
- glebstepanov1992 December 23, 2013