この記事は note株式会社 Advent Calendar 2022の 15 日目の記事です。 LeetCode はプログラミング問題の対策サイトだというのが専らの紹介文だと思うんだけど、別にそれだけに限定した使い方じゃなくても十分楽しいサービスだよ、という話をしたい。 LeetCodeとは ...
# and growing a sorted output list. # At each iteration, insertion sort removes one element from the input # data, finds the location it belongs within the sorted list, and # inserts it there. # It ...
<p>第一個遇到的問題就是要 maintain 前後兩個 node 的 next 要能指對。所以當有一個直鏈:<code>A-&gt;B-&gt;C</code> 若要用 <code>D</code ...