We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d1d223 commit 6536cd7Copy full SHA for 6536cd7
Karatsuba Multiplication/README.markdown
@@ -71,12 +71,12 @@ Here's the full implementation. Note that the recursive algorithm is most effici
71
72
```swift
73
// Karatsuba Multiplication
74
- func karatsuba(_ num1: Int, by num2: Int) -> Int {
+func karatsuba(_ num1: Int, by num2: Int) -> Int {
75
let num1String = String(num1)
76
let num2String = String(num2)
77
78
guard num1String.count > 1 && num2String.count > 1 else {
79
- return multiply(num1, by: num2)
+ return multiply(num1, by: num2)
80
}
81
82
let n = max(num1String.count, num2String.count)
0 commit comments