slinkedlist-ll.html

来自「经典的数据结构源代码(java 实现)」· HTML 代码 · 共 24 行

HTML
24
字号
<html><head><title>Code Fragment</title></head><body text=#000000><center></center><br><br><dl><dd><pre><font color = #ff0080>/** Singly linked list .*/</font><font color=#8000a0>public</font> <font color=#8000a0><font color=#ff8000>class</font> </font>SLinkedList {  <font color=#8000a0><font color=#8000a0>protected</font> </font>Node head;		<font color=#ff0080>// head node of the list</font>  <font color=#8000a0><font color=#8000a0>protected</font> </font>long size;		<font color=#ff0080>// number of nodes in the list</font>  <font color = #ff0080>/** Default constructor that creates an empty list */</font>  <font color=#8000a0><font color=#8000a0>public</font> </font><font color=#0000ff>SLinkedList</font>() {    head = null;    size = 0;  }  <font color=#ff0080>// ... update and search methods would go here ...</font>}</dl></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?