Skip to content

Instantly share code, notes, and snippets.

@alvineadel
alvineadel / 1. Main.md
Last active December 30, 2015 09:38
UVA - 10038 - Jolly Jumpers

Problem E: Jolly Jumpers

A sequence of n > 0 integers is called a jolly jumper if the absolute values of the difference between successive elements take on all the values 1 through n-1. For instance,

1 4 2 3
is a jolly jumper, because the absolutes differences are 3, 2, and 1 respectively. The definition implies that any sequence of a single
@alvineadel
alvineadel / 0_reuse_code.js
Created December 5, 2013 18:03
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@alvineadel
alvineadel / Major File.java
Last active December 30, 2015 09:39 — forked from idan/gist:3135754
import java.util.*;
import java.lang.*;
import java.io.*;
class Main
{
public static void main (String[] args) throws java.lang.Exception
{
Scanner in = new Scanner(System.in);
@alvineadel
alvineadel / 1. Main.md
Last active December 30, 2015 10:48
UVA - 11172 - Relational Operators