mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-09 21:47:07 +08:00
Update divide_and_conquer/karatsuba_algorithm_for_fast_multiplication.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
@@ -141,7 +141,7 @@ static void test() {
|
|||||||
// 2nd test
|
// 2nd test
|
||||||
std::string s21 = "11";
|
std::string s21 = "11";
|
||||||
std::string s22 = "1010";
|
std::string s22 = "1010";
|
||||||
std::cout << "Test 2... ";
|
std::cout << "2nd test... ";
|
||||||
assert(divide_and_conquer::karatsuba_algorithm::karatsuba_algorithm(
|
assert(divide_and_conquer::karatsuba_algorithm::karatsuba_algorithm(
|
||||||
s21, s22) == 30); // here the multiplication is 30
|
s21, s22) == 30); // here the multiplication is 30
|
||||||
std::cout << "passed" << std::endl;
|
std::cout << "passed" << std::endl;
|
||||||
|
|||||||
Reference in New Issue
Block a user