Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 392 Bytes

File metadata and controls

29 lines (19 loc) · 392 Bytes
title Algorithm4 Java Solution 1.3.18
date 2019-07-04 05:47:10 +0800
draft false
tags
JAVA
categories
TECH
archives

1.3.18

Problem:

Suppose x is a linked-list node and not the last node on the list. What is the effect of the following code fragment?

x.next = x.next.next;

Solution:

delete the node following node x.

Reference: