4 ms·
Part of the problem is that the list size is not known. If the list size where known to be N, then you simply traverse N elements and check if the tail is null
by lmkg 17y ago
Part of the problem is that the list size is not known. If the list size where known to be N, then you simply traverse N elements and check if the tail is null or not.
- keefe 17y agoI think this is clever <notes>