3 ms·
The second solution may not be obvious at first but the idea is that in the first solution you are finding the node that needs to be removed whereas in the seco
by ankurdhama 6y ago
The second solution may not be obvious at first but the idea is that in the first solution you are finding the node that needs to be removed whereas in the second solution you are finding the "next" of a node that points to the node to be removed.