4 ms·
Won't it introduce risk of invalid memory access when the list isn't contiguous? And if it always is contiguous then why not use array instead. Smells like cont
by rini17 1y ago
Won't it introduce risk of invalid memory access when the list isn't contiguous? And if it always is contiguous then why not use array instead. Smells like contrived example.
- imtringued 1y agoYeah this use case is pretty contrived. Even a simple unrolled linked list would beat his implementation.
- pkhuong 1y ago> Won't it introduce risk of invalid memory access no.