Retranslate the complete Japanese online edition from Chinese (#2008)

* 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
This commit is contained in:
Yudong Jin
2026-10-30 02:12:26 +08:00
committed by GitHub
parent 455e8c1281
commit 7257641e0e
1987 changed files with 23531 additions and 23261 deletions

View File

@@ -4,17 +4,17 @@
* Author: IsChristina (christinaxia77@foxmail.com)
*/
/* 連結リストノード */
/* 連結リストのノード */
class ListNode {
val; // ノード値
next; // 次のノードを指す参照(ポインタ)
val; // ノードの値
next; // 次のノードへの参照(ポインタ)
constructor(val, next) {
this.val = val === undefined ? 0 : val;
this.next = next === undefined ? null : next;
}
}
/* リストを連結リストにデシリアライズする */
/* リストをデシリアライズして連結リストにする */
function arrToLinkedList(arr) {
const dum = new ListNode(0);
let head = dum;

View File

@@ -6,7 +6,7 @@
const { arrToTree } = require('./TreeNode');
/* 連結リストを出力 */
/* 連結リストを表示する */
function printLinkedList(head) {
let list = [];
while (head !== null) {
@@ -22,15 +22,15 @@ function Trunk(prev, str) {
}
/**
* 二分木を出力
* This tree printer is borrowed from TECHIE DELIGHT
* 二分木を表示する
* この木の表示処理は TECHIE DELIGHT から借用した
* https://www.techiedelight.com/c-program-print-binary-tree/
*/
function printTree(root) {
printTree(root, null, false);
}
/* 二分木を出力 */
/* 二分木を表示する */
function printTree(root, prev, isRight) {
if (root === null) {
return;
@@ -71,7 +71,7 @@ function showTrunks(p) {
process.stdout.write(p.str);
}
/* ヒープを出力 */
/* ヒープを表示する */
function printHeap(arr) {
console.log('ヒープの配列表現:');
console.log(arr);

View File

@@ -4,12 +4,12 @@
* Author: IsChristina (christinaxia77@foxmail.com)
*/
/* 二分木ノード */
/* 二分木のノード */
class TreeNode {
val; // ノード値
val; // ノードの値
left; // 左の子ノードへのポインタ
right; // 右の子ノードへのポインタ
height; // ノードの高さ
height; //ノードの高さ
constructor(val, left, right, height) {
this.val = val === undefined ? 0 : val;
this.left = left === undefined ? null : left;
@@ -18,7 +18,7 @@ class TreeNode {
}
}
/* 配列をデシリアライズして二分木に変換する */
/* 配列をデシリアライズして二分木にする */
function arrToTree(arr, i = 0) {
if (i < 0 || i >= arr.length || arr[i] === null) {
return null;

View File

@@ -11,7 +11,7 @@ class Vertex {
this.val = val;
}
/* 値リスト vals を入力し、頂点リスト vets を返す */
/* 値のリスト vals を入力し、頂点のリスト vets を返す */
static valsToVets(vals) {
const vets = [];
for (let i = 0; i < vals.length; i++) {
@@ -20,7 +20,7 @@ class Vertex {
return vets;
}
/* 頂点リスト vets を入力し、値リスト vals を返す */
/* 頂点のリスト vets を入力し、値のリスト vals を返す */
static vetsToVals(vets) {
const vals = [];
for (const vet of vets) {