mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-02 12:58:42 +08:00
Polish the content
Polish the chapter preface, introduction and complexity anlysis
This commit is contained in:
@ -67,7 +67,7 @@ func bubbleSort(nums []int) int {
|
||||
/* 指数阶(循环实现)*/
|
||||
func exponential(n int) int {
|
||||
count, base := 0, 1
|
||||
// cell 每轮一分为二,形成数列 1, 2, 4, 8, ..., 2^(n-1)
|
||||
// 细胞每轮一分为二,形成数列 1, 2, 4, 8, ..., 2^(n-1)
|
||||
for i := 0; i < n; i++ {
|
||||
for j := 0; j < base; j++ {
|
||||
count++
|
||||
|
||||
Reference in New Issue
Block a user