I hereby claim:
- I am anasaboureada on github.
- I am aboureada (https://keybase.io/aboureada) on keybase.
- I have a public key ASBqGxyu2chZwpNZfKYc0I5Ajn8Rqwdpfv1ye0MNdKtj-Ao
To claim this, I am signing this object:
i = //constant | |
n = //constant | |
k = //constant | |
while (i < n){ | |
i*=k; | |
// Statement(s) that take(s) constant time | |
} |
for (int i=0; i<n; i++){ | |
i*=2; | |
for (int j=0; j<i; j++){ | |
// Statement(s) that take(s) constant time | |
} | |
} |
for (int i=0; i<n; i++){ | |
for (int j=0; j<i; j++){ | |
//Statement(s) that take(s) constant time | |
} | |
} |
for (int i=0; i<n; i++){ | |
for (int j=0; j<m; j++){ | |
//Statement(s) that take(s) constant time | |
} | |
} |
for (int x = 0; x < n; x+=k) { | |
//statement(s) that take constant time | |
} |
for (int x=0; x<n ;x++){ | |
//statement(s)thattakeconstanttime | |
} |
import static org.junit.jupiter.api.Assertions.assertEquals; | |
import static org.junit.jupiter.api.Assertions.assertTrue; | |
import java.util.concurrent.TimeUnit; | |
import org.junit.jupiter.api.Test; | |
class FibonacciHugeTest { | |
@Test | |
void getPisanoPeriod() { | |
assertEquals(8, FibonacciHuge.getPisanoPeriod(3)); |
import java.math.BigInteger; | |
import java.util.*; | |
public class FibonacciHuge { | |
public static long getFibonacciHugeNaive(long n, long m) { | |
if (n <= 1) return n; | |
BigInteger previous = BigInteger.ZERO; | |
BigInteger current = BigInteger.ONE; |
<html> | |
<body> | |
<a class="weatherwidget-io" href="https://forecast7.com/en/52d374d90/amsterdam/" data-label_1="AMSTERDAM" data-label_2="WEATHER" data-theme="original" >AMSTERDAM WEATHER</a> | |
<script> | |
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src='https://weatherwidget.io/js/widget.min.js';fjs.parentNode.insertBefore(js,fjs);}}(document,'script','weatherwidget-io-js'); | |
</script> | |
</body> | |
</html> |
I hereby claim:
To claim this, I am signing this object: