Skip to content

Instantly share code, notes, and snippets.

@taishi41228
Created March 5, 2013 00:47
Show Gist options
  • Save taishi41228/5087083 to your computer and use it in GitHub Desktop.
Save taishi41228/5087083 to your computer and use it in GitHub Desktop.
int factorial(int n){
if(n == 1){
return 1;
}
return n * factorial(n-1);
}
int hash(int x,int n){
return x % n;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment