This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from random import randint | |
def karatsuba(x, y): | |
if (x<10) or (y<10): | |
return x*y | |
x_str = str(x) | |
x_n = len(x_str) | |
y_str = str(y) | |
y_n = len(y_str) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from random import randint | |
def recursive_mult(x, y): | |
if (x<10) or (y<10): | |
return x*y | |
x_str = str(x) | |
x_n = len(x_str) | |
y_str = str(y) | |
y_n = len(y_str) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Returns Mobile Speed & Optimization and Desktop Speed & Optimization values in six adjacent columns | |
* by Cagri Sarigoz | |
*/ | |
function checkAll(Url) { | |
//CHANGE YOUR API KEY WITH YOUR_API_KEY BELOW | |
var key = "YOUR_API_KEY"; | |
var serviceUrlMobile = "https://www.googleapis.com/pagespeedonline/v4/runPagespeed?url=" + Url + "&strategy=mobile&key=" + key; | |
var serviceUrlDesktop = "https://www.googleapis.com/pagespeedonline/v4/runPagespeed?url=" + Url + "&strategy=desktop&key=" + key; |
NewerOlder