mirror of
https://github.com/krahets/hello-algo.git
synced 2026-11-08 20:21:25 +08:00
* Retranslate the complete Japanese online edition from Chinese * Fit Japanese homepage labels and localize heading permalinks * Point Japanese contribution instructions to the Japanese preview * Replace locale conditionals with multilingual UI tables
20 lines
602 B
Python
20 lines
602 B
Python
# PEP 585「標準コレクションにおける型ヒント用のジェネリクス」に従う
|
|
# https://peps.python.org/pep-0585/
|
|
from __future__ import annotations
|
|
|
|
# 共通ライブラリをここで読み込み、`from module import *` によりコードを簡潔にする
|
|
from .list_node import (
|
|
ListNode,
|
|
list_to_linked_list,
|
|
linked_list_to_list,
|
|
)
|
|
from .tree_node import TreeNode, list_to_tree, tree_to_list
|
|
from .vertex import Vertex, vals_to_vets, vets_to_vals
|
|
from .print_util import (
|
|
print_matrix,
|
|
print_linked_list,
|
|
print_tree,
|
|
print_dict,
|
|
print_heap,
|
|
)
|