Skip to content

Instantly share code, notes, and snippets.

public class Acm2 {
public static void main(String[] args) {
int p = solve(3121);
if (p>0){
System.out.format("Found a soluion with %d persons\n", p);
}else{
System.out.format("No solution found \n");
}
}
var assert = require('assert');
/********************************
* We want make a package of goal kilos of chocolate. We have
* inventory of small bars (1 kilos each) and big bars (5 kilos each).
* Return the number of small bars to use, assuming we always
* use big bars before small bars. Return -1 if it can't be done.
*
* See the asserts below for examples of input
* and expected output.

Hello Whistle Devs,

We ran these three experiments in Optimizely, and found that the produced good results. These experiments covered a variety of changes related to promotional offers.

The three experiments packaged here were named:

  • WSL-16 | HP Promo Popup
  • WSL-15 | $20-off Promo (HP Banner)
  • WSL-14 | $20-off Promo (HP, PDP, Accessories, Cart)

Keybase proof

I hereby claim:

  • I am shixish on github.
  • I am awessels (https://keybase.io/awessels) on keybase.
  • I have a public key ASCoQJCDyXWK1KvQzRBZDBvRt-zgCvmGi1Wbb4c7WrFpNgo

To claim this, I am signing this object: