Day 1 Linked List

Linked List is composed of a series of nodes.

The list is terminated when a node's link is null. The last node in this linked list is called the 'tailed node'. Respectively, the first node is called the 'head node'.

Since the nodes use links to denote the next node in the sequence, the nodes are not required to be sequentially located in the momery. These links also allow for quick insertion and removal of nodes. 

Common operations on a linked list may include:

  • adding nodes
  • removing nodes
  • finding a node
  • traversing (or traveling through) the linked list

 

Linked list needs some maintanance in order to add or remove nodes. 

 

推荐这些技术文章:

Day 0 (Nodes)

An individual node contains two type of things: data it stores and links to other nodes.  The link or links within the nodes are sometimes referred as pointers (because they point to other ...

Day 5 Stack

A stack is a data structure which contains an ordered set of data.
Stacks provide three methods for interaction:

Push - adds data to the “top” of the stack
Pop - returns and removes data from the “t...

Day 3 Double-Linked-List

Double-linked-list is also composed of a series of nodes. 
It has the following attributes:

Are comprised of nodes that contain links to the next and previous nodes
Are bidirectional, meaning i...

Day 2 Double pointers in the Linked List

I was busy with dealing with something else the other day, but I will continue in this blog from now on 🙂
This time I will talk about another technique often used in a single-linked-list: double poi...

LeetCode 2095. Delete the Middle Node of a Linked List

原题链接在这里:https://leetcode.com/problems/delete-the-middle-node-of-a-linked-list/
题目:
You are given the head of a linked list. Delete the middle node, and return the h...

解决List遍历删除元素提示ConcurrentModificationException

JDK1.8提供新的API  ===>  removeIf

@Test
public void removeIf() {
List<String> list = new ArrayList<>();
list.add("A");
list.add("B");
lis...

SQL Server DB迁移工作List

 公司的数据库规模达到一定数量后,DB迁移、主从切换便是DBA经常性工作之一。但是 DB迁移影响较大,牵涉Team较多,特别是当公司的技术架构不太完善时,一份详细的迁移List很有必要。下面的List是我们DBA进行DB迁移的主要工作汇总,这份List是镜像(Mirror)架构下的工作总结。
 

序号

变更操作

操作内容

操作影响

操作人员

Dou...

文章标题:Day 1 Linked List
文章链接:https://www.dianjilingqu.com/4292.html
本文章来源于网络,版权归原作者所有,如果本站文章侵犯了您的权益,请联系我们删除,联系邮箱:saisai#email.cn,感谢支持理解。
THE END
< <上一篇
下一篇>>