mirror of
https://github.com/krahets/hello-algo.git
synced 2026-06-15 22:57:48 +08:00
Re-translate the Japanese version (#1871)
* Retranslate Japanese docs with GPT-5.4 * Retranslate Japanese code with GPT-5.4
This commit is contained in:
@@ -16,7 +16,7 @@ public class Vertex {
|
||||
this.val = val;
|
||||
}
|
||||
|
||||
/* 値のリストvalsを入力し、頂点のリストvetsを返す */
|
||||
/* 値リスト vals を入力し、頂点リスト vets を返す */
|
||||
public static Vertex[] valsToVets(int[] vals) {
|
||||
Vertex[] vets = new Vertex[vals.length];
|
||||
for (int i = 0; i < vals.length; i++) {
|
||||
@@ -25,7 +25,7 @@ public class Vertex {
|
||||
return vets;
|
||||
}
|
||||
|
||||
/* 頂点のリストvetsを入力し、値のリストvalsを返す */
|
||||
/* 頂点リスト vets を入力し、値リスト vals を返す */
|
||||
public static List<Integer> vetsToVals(List<Vertex> vets) {
|
||||
List<Integer> vals = new ArrayList<>();
|
||||
for (Vertex vet : vets) {
|
||||
@@ -33,4 +33,4 @@ public class Vertex {
|
||||
}
|
||||
return vals;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user