3 ms·
We don't use linked lists, but it's a test to see if they understand pointers. Pointers are used quite often for a number of things. A binary search might be a
by muzani 7y ago
We don't use linked lists, but it's a test to see if they understand pointers. Pointers are used quite often for a number of things. A binary search might be a better test, but it's even harder and not as guided as a linked list modification test.
Oh, to note, it's a code modification test, not a whiteboard algorithm thing.
- Jemaclus 7y agoAh, gotcha. That makes a lot more sense. If you were asking them to write a linked list implementation from scratch, I'd have a lot more questions. Having an already-implemented LL and modifying that is a lot more reasonable. Thanks!