mirror of
https://github.com/krahets/hello-algo.git
synced 2026-04-05 03:30:30 +08:00
build
This commit is contained in:
@@ -1394,7 +1394,7 @@ $$
|
||||
int arrayTraversal(List<int> nums) {
|
||||
int count = 0;
|
||||
// 循环次数与数组长度成正比
|
||||
for (var num in nums) {
|
||||
for (var _num in nums) {
|
||||
count++;
|
||||
}
|
||||
return count;
|
||||
|
||||
Reference in New Issue
Block a user