mirror of
https://github.com/krahets/hello-algo.git
synced 2026-07-26 13:06:07 +00: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:
@@ -0,0 +1,26 @@
|
||||
// File: iteration_test.go
|
||||
// Created Time: 2023-08-28
|
||||
// Author: Reanon (793584285@qq.com)
|
||||
|
||||
package chapter_computational_complexity
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
)
|
||||
|
||||
/* Driver Code */
|
||||
func TestIteration(t *testing.T) {
|
||||
n := 5
|
||||
res := forLoop(n)
|
||||
fmt.Println("\nfor ループの合計結果 res = ", res)
|
||||
|
||||
res = whileLoop(n)
|
||||
fmt.Println("\nwhile ループの合計結果 res = ", res)
|
||||
|
||||
res = whileLoopII(n)
|
||||
fmt.Println("\nwhile ループ(2 回更新)の合計結果 res = ", res)
|
||||
|
||||
resStr := nestedForLoop(n)
|
||||
fmt.Println("\n二重 for ループの走査結果 ", resStr)
|
||||
}
|
||||
Reference in New Issue
Block a user