mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-02 04:31:55 +08:00
Bug fixes and improvements (#1472)
* preorder, inorder, postorder -> pre-order, in-order, post-order * Bug fixes * Bug fixes * Update what_is_dsa.md * Sync zh and zh-hant versions * Sync zh and zh-hant versions. * Update performance_evaluation.md and time_complexity.md * Add @khoaxuantu to the landing page. * Sync zh and zh-hant versions * Add @ khoaxuantu to the landing page of zh-hant and en versions. * Sync zh and zh-hant versions. * Small improvements * @issue : #1450 (#1453) Fix writing "obsecure" to "obscure" Co-authored-by: Gaya <kheliligaya@gmail.com> * Update the definition of "adaptive sorting". * Update n_queens_problem.md * Sync zh, zh-hant, and en versions. --------- Co-authored-by: Gaya-Khelili <50716339+Gaya-Khelili@users.noreply.github.com> Co-authored-by: Gaya <kheliligaya@gmail.com>
This commit is contained in:
@ -30,7 +30,7 @@
|
||||
a = a + 1; // 1 ns
|
||||
a = a * 2; // 10 ns
|
||||
// 迴圈 n 次
|
||||
for (int i = 0; i < n; i++) { // 1 ns ,每輪都要執行 i++
|
||||
for (int i = 0; i < n; i++) { // 1 ns
|
||||
cout << 0 << endl; // 5 ns
|
||||
}
|
||||
}
|
||||
@ -45,7 +45,7 @@
|
||||
a = a + 1; // 1 ns
|
||||
a = a * 2; // 10 ns
|
||||
// 迴圈 n 次
|
||||
for (int i = 0; i < n; i++) { // 1 ns ,每輪都要執行 i++
|
||||
for (int i = 0; i < n; i++) { // 1 ns
|
||||
System.out.println(0); // 5 ns
|
||||
}
|
||||
}
|
||||
@ -60,7 +60,7 @@
|
||||
a = a + 1; // 1 ns
|
||||
a = a * 2; // 10 ns
|
||||
// 迴圈 n 次
|
||||
for (int i = 0; i < n; i++) { // 1 ns ,每輪都要執行 i++
|
||||
for (int i = 0; i < n; i++) { // 1 ns
|
||||
Console.WriteLine(0); // 5 ns
|
||||
}
|
||||
}
|
||||
@ -105,7 +105,7 @@
|
||||
a = a + 1; // 1 ns
|
||||
a = a * 2; // 10 ns
|
||||
// 迴圈 n 次
|
||||
for(let i = 0; i < n; i++) { // 1 ns ,每輪都要執行 i++
|
||||
for(let i = 0; i < n; i++) { // 1 ns
|
||||
console.log(0); // 5 ns
|
||||
}
|
||||
}
|
||||
@ -120,7 +120,7 @@
|
||||
a = a + 1; // 1 ns
|
||||
a = a * 2; // 10 ns
|
||||
// 迴圈 n 次
|
||||
for(let i = 0; i < n; i++) { // 1 ns ,每輪都要執行 i++
|
||||
for(let i = 0; i < n; i++) { // 1 ns
|
||||
console.log(0); // 5 ns
|
||||
}
|
||||
}
|
||||
@ -135,7 +135,7 @@
|
||||
a = a + 1; // 1 ns
|
||||
a = a * 2; // 10 ns
|
||||
// 迴圈 n 次
|
||||
for (int i = 0; i < n; i++) { // 1 ns ,每輪都要執行 i++
|
||||
for (int i = 0; i < n; i++) { // 1 ns
|
||||
print(0); // 5 ns
|
||||
}
|
||||
}
|
||||
@ -150,7 +150,7 @@
|
||||
a = a + 1; // 1 ns
|
||||
a = a * 2; // 10 ns
|
||||
// 迴圈 n 次
|
||||
for _ in 0..n { // 1 ns ,每輪都要執行 i++
|
||||
for _ in 0..n { // 1 ns
|
||||
println!("{}", 0); // 5 ns
|
||||
}
|
||||
}
|
||||
@ -165,7 +165,7 @@
|
||||
a = a + 1; // 1 ns
|
||||
a = a * 2; // 10 ns
|
||||
// 迴圈 n 次
|
||||
for (int i = 0; i < n; i++) { // 1 ns ,每輪都要執行 i++
|
||||
for (int i = 0; i < n; i++) { // 1 ns
|
||||
printf("%d", 0); // 5 ns
|
||||
}
|
||||
}
|
||||
@ -180,7 +180,7 @@
|
||||
a = a + 1 // 1 ns
|
||||
a = a * 2 // 10 ns
|
||||
// 迴圈 n 次
|
||||
for (i in 0..<n) { // 1 ns ,每輪都要執行 i++
|
||||
for (i in 0..<n) { // 1 ns
|
||||
println(0) // 5 ns
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user