mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-05 06:37:12 +08:00
Review Swift codes (#1150)
* feat(swift): review for chapter_computational_complexity * feat(swift): review for chapter_data_structure * feat(swift): review for chapter_array_and_linkedlist * feat(swift): review for chapter_stack_and_queue * feat(swift): review for chapter_hashing * feat(swift): review for chapter_tree * feat(swift): add codes for heap article * feat(swift): review for chapter_heap * feat(swift): review for chapter_graph * feat(swift): review for chapter_searching * feat(swift): review for chapter_sorting * feat(swift): review for chapter_divide_and_conquer * feat(swift): review for chapter_backtracking * feat(swift): review for chapter_dynamic_programming * feat(swift): review for chapter_greedy * feat(swift): review for utils * feat(swift): update ci tool * feat(swift): trailing closure * feat(swift): array init * feat(swift): map index
This commit is contained in:
@ -317,7 +317,7 @@ Let's understand this concept of "time growth trend" with an example. Assume the
|
||||
|
||||
// Time complexity of algorithm C: constant order
|
||||
func algorithmC(n: Int) {
|
||||
for _ in 0 ..< 1000000 {
|
||||
for _ in 0 ..< 1_000_000 {
|
||||
print(0)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user