mirror of
https://github.com/krahets/hello-algo.git
synced 2026-11-04 12:12:45 +08:00
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:
@@ -4,17 +4,17 @@
|
||||
* Author: IsChristina ([email protected])
|
||||
*/
|
||||
|
||||
/* 連結リストノード */
|
||||
/* 連結リストのノード */
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user