You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DataStructures/LinkedLists/leetcode/21. Merge Two Sorted Lists/Sonnet 5/Merge-Two-Sorted-Lists-Typescript.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,8 +102,9 @@ class ListNode {
102
102
/**
103
103
* 2つのソート済み連結リストを1つのソート済み連結リストにマージする。
104
104
*
105
-
* 新しいノードは一切作成せず、既存ノードの next 参照をつなぎ替える
106
-
* (スプライシング)ことでマージするため、空間計算量は O(1) となる。
105
+
* new ListNode(0) ダミーノードを1つだけアロケーションし、他の新しいリストノードは作成せずに
<liclass="file-item" data-category="algorithm"><aclass="file-link" href="Algorithm/Other/leetcode/90.%20Subsets%20II/Claude/README.html"><spanclass="card-header"><spanclass="card-icon">🧩</span><spanclass="card-title">Subsets II - 反復的拡張法による重複排除 | アルゴリズム解説</span></span><spanclass="file-path">Algorithm/Other/leetcode/90. Subsets II/Claude/README.html</span></a></li>
523
523
<liclass="file-item" data-category="algorithm"><aclass="file-link" href="Algorithm/TwoPointers/leetcode/80.%20Remove%20Duplicates%20from%20Sorted%20Array%20II/Claude/README.html"><spanclass="card-header"><spanclass="card-icon">🧩</span><spanclass="card-title">Two-Pointer Algorithm: Remove Duplicates from Sorted Array II</span></span><spanclass="file-path">Algorithm/TwoPointers/leetcode/80. Remove Duplicates from Sorted Array II/Claude/README.html</span></a></li>
524
524
<liclass="file-item" data-category="algorithm"><aclass="file-link" href="Algorithm/BinarySearch/leetcode/34.%20Find%20First%20and%20Last%20Position%20of%20Element%20in%20Sorted%20Array/READEME-typescript.html"><spanclass="card-header"><spanclass="card-icon">🧩</span><spanclass="card-title">TypeScript Binary Search Performance Analysis</span></span><spanclass="file-path">Algorithm/BinarySearch/leetcode/34. Find First and Last Position of Element in Sorted Array/READEME-typescript.html</span></a></li>
@@ -709,8 +709,8 @@ <h1 class="site-title">
709
709
<liclass="file-item" data-category="algorithm"><aclass="file-link" href="Algorithm/BinarySearch/leetcode/81.%20Search%20in%20Rotated%20Sorted%20Array%20II/Claude/README.html"><spanclass="card-header"><spanclass="card-icon">🧩</span><spanclass="card-title">Search in Rotated Sorted Array II - Technical Analysis</span></span><spanclass="file-path">Algorithm/BinarySearch/leetcode/81. Search in Rotated Sorted Array II/Claude/README.html</span></a></li>
<liclass="file-item" data-category="algorithm"><aclass="file-link" href="Algorithm/Other/leetcode/90.%20Subsets%20II/Claude/README.html"><spanclass="card-header"><spanclass="card-icon">🧩</span><spanclass="card-title">Subsets II - 反復的拡張法による重複排除 | アルゴリズム解説</span></span><spanclass="file-path">Algorithm/Other/leetcode/90. Subsets II/Claude/README.html</span></a></li>
715
715
<liclass="file-item" data-category="algorithm"><aclass="file-link" href="Algorithm/TwoPointers/leetcode/80.%20Remove%20Duplicates%20from%20Sorted%20Array%20II/Claude/README.html"><spanclass="card-header"><spanclass="card-icon">🧩</span><spanclass="card-title">Two-Pointer Algorithm: Remove Duplicates from Sorted Array II</span></span><spanclass="file-path">Algorithm/TwoPointers/leetcode/80. Remove Duplicates from Sorted Array II/Claude/README.html</span></a></li>
716
716
<liclass="file-item" data-category="algorithm"><aclass="file-link" href="Algorithm/BinarySearch/leetcode/34.%20Find%20First%20and%20Last%20Position%20of%20Element%20in%20Sorted%20Array/READEME-typescript.html"><spanclass="card-header"><spanclass="card-icon">🧩</span><spanclass="card-title">TypeScript Binary Search Performance Analysis</span></span><spanclass="file-path">Algorithm/BinarySearch/leetcode/34. Find First and Last Position of Element in Sorted Array/READEME-typescript.html</span></a></li>
0 commit comments