Skip to content

Commit ee71d44

Browse files
author
chufan
committed
docs: 更新链表相关算法文档
1 parent 1744848 commit ee71d44

File tree

19 files changed

+241
-6
lines changed

19 files changed

+241
-6
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
* function ListNode(x){
3+
* this.val = x;
4+
* this.next = null;
5+
* }
6+
*/
7+
/**
8+
*
9+
* @param head1 ListNode类
10+
* @param head2 ListNode类
11+
* @return ListNode类
12+
*/
13+
function addInList(head1, head2) {
14+
// write code here
15+
}
16+
module.exports = {
17+
addInList
18+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* function ListNode(x){
3+
* this.val = x;
4+
* this.next = null;
5+
* }
6+
*/
7+
/**
8+
*
9+
* @param head ListNode类
10+
* @return ListNode类
11+
*/
12+
function deleteDuplicatesOne(head) {
13+
// write code here
14+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* function ListNode(x){
3+
* this.val = x;
4+
* this.next = null;
5+
* }
6+
*/
7+
/**
8+
*
9+
* @param head ListNode类
10+
* @return ListNode类
11+
*/
12+
function deleteDuplicatesTwo(head) {
13+
// write code here
14+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* function ListNode(x){
3+
* this.val = x;
4+
* this.next = null;
5+
* }
6+
*/
7+
/**
8+
*
9+
* @param head ListNode类 the head
10+
* @return bool布尔型
11+
*/
12+
function isPail(head) {
13+
// write code here
14+
}
15+
module.exports = {
16+
isPail
17+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* function ListNode(x){
3+
* this.val = x;
4+
* this.next = null;
5+
* }
6+
*/
7+
/**
8+
*
9+
* @param head ListNode类
10+
* @return ListNode类
11+
*/
12+
function oddEvenList(head) {
13+
// write code here
14+
}
15+
module.exports = {
16+
oddEvenList
17+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
* function ListNode(x){
3+
* this.val = x;
4+
* this.next = null;
5+
* }
6+
*/
7+
/**
8+
* @param head ListNode类 the head node
9+
* @return ListNode类
10+
*/
11+
function sortInList(head) {
12+
// write code here
13+
}
14+
module.exports = {
15+
sortInList
16+
}
90.6 KB
Loading
51.4 KB
Loading
57.3 KB
Loading
55.4 KB
Loading

0 commit comments

Comments
 (0)