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
import java.util.*; | |
public class Fast{ | |
public static void main(String[] args){ | |
long sum = 0L; | |
for(long i = 0; i < Integer.MAX_VALUE;i++){ | |
sum += i; | |
} | |
System.out.println(sum); | |
} |
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
import java.util.*; | |
public class ThingNode<E>{ | |
private E value; | |
private final String address; | |
ThingNode(Builder<E> builder){ | |
this.value = builder.value; | |
this.address = builder.address; | |
} |
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
import time | |
import math | |
def log(func, timePassed, *args,**kwargs): | |
print("Function " + func.__name__ + " ran in " + ("%.8f" % timePassed) + " seconds") | |
argString = "" | |
for i,arg in enumerate(args): | |
argString += str(arg) | |
if i != (len(args) -1): |
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
asdklasldkalka | |
[]1kl3123kl132kl12klm |
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
gcc $(<flags) $(<files) -o main |
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
clang++ $(<flags) -o main $(<files) |