Skip to content

Instantly share code, notes, and snippets.

View dkovacevic's full-sized avatar

Dejan Kovacevic dkovacevic

  • Prague, Czech Republic
View GitHub Profile
@Test
public void number113() {
int[] a = {2, 4, 1, 3, 10, 75};
int x = 113; // ((75 / 3) * 4) + 2 + 1 + 10
System.out.printf("%d, %d, %d, %d, %d, %d... X is: %d\n\n", a[0], a[1], a[2], a[3], a[4], a[5], x);
forceItIn(a, x);
}
@Test
The push refers to a repository [docker.io/dejankovacevic/cali-bot]
0149d369bba7: Preparing
bce23cc362cc: Pushed
233ad7a44f1d: Pushed
6b1bb7186397: Layer already exists
4e8b059ee721: Layer already exists
374dd0935303: Layer already exists
53b2942b089b: Layer already exists
4956e830da27: Layer already exists
@dkovacevic
dkovacevic / texas.java
Created February 25, 2018 08:15
texas Hold'em Poker
package test;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Random;
public class Texas {
Random random = new Random();
enum Sign {
package test;
import java.util.*;
public class Lotto {
private static final int SIZE = 1 * 1000 * 1000;
private static Random random = new Random();
private static final HashSet<Ticket> winners = new HashSet<>();
public static void main(String[] args) throws InterruptedException {
package test;
import java.util.*;
public class Lotto {
static Random random = new Random();
static class Combination extends ArrayList<Integer> {
public UUID id;