Skip to content

Instantly share code, notes, and snippets.

View r41d's full-sized avatar

Lennart Buhl r41d

View GitHub Profile
@r41d
r41d / gist:7189710
Last active December 26, 2015 17:49
import java.util.*;
import java.io.*;
class Sorting {
static int vgl = 0;
static int inversionen = 0;
static boolean lt(int x, int y){vgl++; return x < y;}
static boolean le(int x, int y){vgl++; return x <= y;}
static boolean ge(int x, int y){vgl++; return x >= y;}
static boolean gt(int x, int y){vgl++; return x > y;}