Polish the content

Polish the chapter preface, introduction and complexity anlysis
This commit is contained in:
krahets
2023-08-08 23:16:33 +08:00
parent 9ed16db68e
commit 932d14644d
26 changed files with 215 additions and 182 deletions

View File

@ -68,7 +68,7 @@ func bubbleSort(nums: inout [Int]) -> Int {
func exponential(n: Int) -> Int {
var count = 0
var base = 1
// cell 1, 2, 4, 8, ..., 2^(n-1)
// 1, 2, 4, 8, ..., 2^(n-1)
for _ in 0 ..< n {
for _ in 0 ..< base {
count += 1