diff --git a/Algorithms/20.Valid-Parentheses/Valid Parentheses.go b/Algorithms/20. Valid-Parentheses/20. Valid Parentheses.go similarity index 100% rename from Algorithms/20.Valid-Parentheses/Valid Parentheses.go rename to Algorithms/20. Valid-Parentheses/20. Valid Parentheses.go diff --git a/Algorithms/20.Valid-Parentheses/Valid Parentheses_test.go b/Algorithms/20. Valid-Parentheses/20. Valid Parentheses_test.go similarity index 100% rename from Algorithms/20.Valid-Parentheses/Valid Parentheses_test.go rename to Algorithms/20. Valid-Parentheses/20. Valid Parentheses_test.go diff --git a/Algorithms/20.Valid-Parentheses/README.md b/Algorithms/20. Valid-Parentheses/README.md similarity index 100% rename from Algorithms/20.Valid-Parentheses/README.md rename to Algorithms/20. Valid-Parentheses/README.md diff --git a/Algorithms/24.Swap-Nodes-in-Pairs/Swap Nodes in Pairs.go b/Algorithms/24. Swap Nodes in Pairs/24. Swap Nodes in Pairs.go similarity index 100% rename from Algorithms/24.Swap-Nodes-in-Pairs/Swap Nodes in Pairs.go rename to Algorithms/24. Swap Nodes in Pairs/24. Swap Nodes in Pairs.go diff --git a/Algorithms/24.Swap-Nodes-in-Pairs/Swap Nodes in Pairs_test.go b/Algorithms/24. Swap Nodes in Pairs/24. Swap Nodes in Pairs_test.go similarity index 100% rename from Algorithms/24.Swap-Nodes-in-Pairs/Swap Nodes in Pairs_test.go rename to Algorithms/24. Swap Nodes in Pairs/24. Swap Nodes in Pairs_test.go diff --git a/Algorithms/24.Swap-Nodes-in-Pairs/README.md b/Algorithms/24. Swap Nodes in Pairs/README.md similarity index 78% rename from Algorithms/24.Swap-Nodes-in-Pairs/README.md rename to Algorithms/24. Swap Nodes in Pairs/README.md index 99d7ca88..1e873610 100644 --- a/Algorithms/24.Swap-Nodes-in-Pairs/README.md +++ b/Algorithms/24. Swap Nodes in Pairs/README.md @@ -4,13 +4,15 @@ Given a linked list, swap every two adjacent nodes and return its head. +You may not modify the values in the list's nodes, only nodes itself may be changed. + + + Example: +```c Given 1->2->3->4, you should return the list as 2->1->4->3. -Note: - -Your algorithm should use only constant extra space. -You may not modify the values in the list's nodes, only nodes itself may be changed. +``` ## 题目大意 diff --git a/Algorithms/412.Fizz-Buzz/Fizz Buzz.go b/Algorithms/412. Fizz-Buzz/412. Fizz Buzz.go similarity index 100% rename from Algorithms/412.Fizz-Buzz/Fizz Buzz.go rename to Algorithms/412. Fizz-Buzz/412. Fizz Buzz.go diff --git a/Algorithms/412.Fizz-Buzz/Fizz Buzz_test.go b/Algorithms/412. Fizz-Buzz/412. Fizz Buzz_test.go similarity index 100% rename from Algorithms/412.Fizz-Buzz/Fizz Buzz_test.go rename to Algorithms/412. Fizz-Buzz/412. Fizz Buzz_test.go diff --git a/Algorithms/412.Fizz-Buzz/README.md b/Algorithms/412. Fizz-Buzz/README.md similarity index 100% rename from Algorithms/412.Fizz-Buzz/README.md rename to Algorithms/412. Fizz-Buzz/README.md diff --git a/Algorithms/82.Remove Duplicates from Sorted List II/Remove Duplicates from Sorted List II.go b/Algorithms/82. Remove Duplicates from Sorted List II/82. Remove Duplicates from Sorted List II.go similarity index 100% rename from Algorithms/82.Remove Duplicates from Sorted List II/Remove Duplicates from Sorted List II.go rename to Algorithms/82. Remove Duplicates from Sorted List II/82. Remove Duplicates from Sorted List II.go diff --git a/Algorithms/82.Remove Duplicates from Sorted List II/Remove Duplicates from Sorted List II_test.go b/Algorithms/82. Remove Duplicates from Sorted List II/82. Remove Duplicates from Sorted List II_test.go similarity index 100% rename from Algorithms/82.Remove Duplicates from Sorted List II/Remove Duplicates from Sorted List II_test.go rename to Algorithms/82. Remove Duplicates from Sorted List II/82. Remove Duplicates from Sorted List II_test.go diff --git a/Algorithms/82.Remove Duplicates from Sorted List II/README.md b/Algorithms/82. Remove Duplicates from Sorted List II/README.md similarity index 100% rename from Algorithms/82.Remove Duplicates from Sorted List II/README.md rename to Algorithms/82. Remove Duplicates from Sorted List II/README.md diff --git a/Algorithms/83.Remove Duplicates from Sorted List/Remove Duplicates from Sorted List.go b/Algorithms/83. Remove Duplicates from Sorted List/83. Remove Duplicates from Sorted List.go similarity index 100% rename from Algorithms/83.Remove Duplicates from Sorted List/Remove Duplicates from Sorted List.go rename to Algorithms/83. Remove Duplicates from Sorted List/83. Remove Duplicates from Sorted List.go diff --git a/Algorithms/83.Remove Duplicates from Sorted List/Remove Duplicates from Sorted List_test.go b/Algorithms/83. Remove Duplicates from Sorted List/83. Remove Duplicates from Sorted List_test.go similarity index 100% rename from Algorithms/83.Remove Duplicates from Sorted List/Remove Duplicates from Sorted List_test.go rename to Algorithms/83. Remove Duplicates from Sorted List/83. Remove Duplicates from Sorted List_test.go diff --git a/Algorithms/83.Remove Duplicates from Sorted List/README.md b/Algorithms/83. Remove Duplicates from Sorted List/README.md similarity index 100% rename from Algorithms/83.Remove Duplicates from Sorted List/README.md rename to Algorithms/83. Remove Duplicates from Sorted List/README.md diff --git a/Algorithms/86.Partition List/Partition List.go b/Algorithms/86. Partition List/86. Partition List.go similarity index 100% rename from Algorithms/86.Partition List/Partition List.go rename to Algorithms/86. Partition List/86. Partition List.go diff --git a/Algorithms/86.Partition List/Partition List_test.go b/Algorithms/86. Partition List/86. Partition List_test.go similarity index 100% rename from Algorithms/86.Partition List/Partition List_test.go rename to Algorithms/86. Partition List/86. Partition List_test.go diff --git a/Algorithms/86.Partition List/README.md b/Algorithms/86. Partition List/README.md similarity index 100% rename from Algorithms/86.Partition List/README.md rename to Algorithms/86. Partition List/README.md diff --git a/Algorithms/88.Merge-Sorted-Array/Merge Sorted Array.go b/Algorithms/88. Merge-Sorted-Array/88. Merge Sorted Array.go similarity index 100% rename from Algorithms/88.Merge-Sorted-Array/Merge Sorted Array.go rename to Algorithms/88. Merge-Sorted-Array/88. Merge Sorted Array.go diff --git a/Algorithms/88.Merge-Sorted-Array/Merge Sorted Array_test.go b/Algorithms/88. Merge-Sorted-Array/88. Merge Sorted Array_test.go similarity index 100% rename from Algorithms/88.Merge-Sorted-Array/Merge Sorted Array_test.go rename to Algorithms/88. Merge-Sorted-Array/88. Merge Sorted Array_test.go diff --git a/Algorithms/88.Merge-Sorted-Array/README.md b/Algorithms/88. Merge-Sorted-Array/README.md similarity index 92% rename from Algorithms/88.Merge-Sorted-Array/README.md rename to Algorithms/88. Merge-Sorted-Array/README.md index 211896e0..d6f7d282 100644 --- a/Algorithms/88.Merge-Sorted-Array/README.md +++ b/Algorithms/88. Merge-Sorted-Array/README.md @@ -4,7 +4,8 @@ Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. -Note: +Note: + You may assume that nums1 has enough space (size that is greater or equal to m + n) to hold additional elements from nums2. The number of elements initialized in nums1 and nums2 are m and n respectively. ## 题目大意 diff --git a/Algorithms/92.Reverse Linked List II/Reverse Linked List II.go b/Algorithms/92. Reverse Linked List II/92. Reverse Linked List II.go similarity index 100% rename from Algorithms/92.Reverse Linked List II/Reverse Linked List II.go rename to Algorithms/92. Reverse Linked List II/92. Reverse Linked List II.go diff --git a/Algorithms/92.Reverse Linked List II/Reverse Linked List II_test.go b/Algorithms/92. Reverse Linked List II/92. Reverse Linked List II_test.go similarity index 100% rename from Algorithms/92.Reverse Linked List II/Reverse Linked List II_test.go rename to Algorithms/92. Reverse Linked List II/92. Reverse Linked List II_test.go diff --git a/Algorithms/92.Reverse Linked List II/README.md b/Algorithms/92. Reverse Linked List II/README.md similarity index 100% rename from Algorithms/92.Reverse Linked List II/README.md rename to Algorithms/92. Reverse Linked List II/README.md