Skip to content

Instantly share code, notes, and snippets.

View dxu's full-sized avatar
💭
🤪

david dxu

💭
🤪
View GitHub Profile
### Keybase proof
I hereby claim:
* I am dxu on github.
* I am xd (https://keybase.io/xd) on keybase.
* I have a public key whose fingerprint is FD46 C21F 424F 2D8E 2A7E 03B0 FF3C 070F 1E5D 1E22
To claim this, I am signing this object:
jitsu deploy
info: Welcome to Nodejitsu antigoliath
info: jitsu v0.11.6, node v0.8.16
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
warn:
warn: The package.json file is missing required fields:
warn:
warn: subdomain, engines
warn:
@dxu
dxu / Sum Of Multiples
Created February 12, 2012 09:29
Sum of Multiples for the Penn Internship Program
public class SumOfMultiples {
public static int sumOfMultiples(int first, int second, int high){
//use summation
int ceiling = high-1;
//need to subtract the overlapping elements
int product = first * second;
//find the biggest multiple less than 1000
@dxu
dxu / SumOfMultiples
Created February 12, 2012 09:26
Program for Sum of Multiples
public class SumOfMultiples {
public static int sumOfMultiples(int first, int second, int high){
//use summation
int ceiling = high-1;
//need to subtract the overlapping elements
int product = first * second;
@dxu
dxu / SumOfMultiples
Created February 12, 2012 09:26
Program for Sum of Multiples
public class SumOfMultiples {
public static int sumOfMultiples(int first, int second, int high){
//use summation
int ceiling = high-1;
//need to subtract the overlapping elements
int product = first * second;