Cite demo-source regions for heap operations and the linked-list node classes (#2036)

Batch 3a of the runnable-snippets plan. heap_operations now cites the heap
demos in Python, C++, Java, C#, Go, Swift, Rust and Kotlin; the demos call
the library directly instead of push/pop helpers and print each popped value.
list_node_class cites each language's shared ListNode (Swift stays literal)
and doubly_list_node_class cites linkedlist_deque (Go stays literal).

Node comments adopt reviewed source wording, Rust and Swift get import
regions, the Ruby typo 前躯 becomes 前驱, and the TypeScript doubly node
fields become nullable. en, ja, ko and zh-hant are regenerated; ru is
synced by hand.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Yudong Jin
2026-11-16 05:23:41 +08:00
committed by GitHub
co-authored by Claude Opus 5.5
parent eeb8a3b790
commit bcd86fc1ed
210 changed files with 3061 additions and 4177 deletions
@@ -5,14 +5,16 @@ Author: krahets ([email protected])
"""
# [region]{doubly_list_node}
class ListNode:
"""双方向連結リストのノード"""
def __init__(self, val: int):
"""コンストラクタ"""
self.val: int = val
self.val: int = val # ノードの値
self.next: ListNode | None = None # 後続ノードへの参照
self.prev: ListNode | None = None # 前のノードへの参照
# [endregion]{doubly_list_node}
class LinkedListDeque: