Skip to content

Commit d0da5de

Browse files
committed
Fixed a typo
1 parent 00c6b72 commit d0da5de

File tree

1 file changed

+1
-1
lines changed
  • Karatsuba Multiplication/KaratsubaMultiplication.playground

1 file changed

+1
-1
lines changed

Karatsuba Multiplication/KaratsubaMultiplication.playground/Contents.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func multiply(_ num1: Int, by num2: Int, base: Int = 10) -> Int {
3333
return Int(product.reversed().map{ String($0) }.reduce("", +))!
3434
}
3535

36-
// Karatsuba Multiplication - O(nlogn)
36+
// Karatsuba Multiplication - O(n^log2(3))
3737
func karatsuba(_ num1: Int, by num2: Int) -> Int {
3838
let num1Array = String(num1).characters
3939
let num2Array = String(num2).characters

0 commit comments

Comments
 (0)