Skip to content

Instantly share code, notes, and snippets.

@bricakeld
bricakeld / p7412.cpp
Last active December 8, 2017 06:31
Decimal Sequences
// Asia-Tsukuba 2015 Regionals
#include <iostream>
#include <cstring>
#include <cmath>
using namespace std;
int main() {
int n, temp, i, smallest, tempj;
@bricakeld
bricakeld / main.py
Created December 27, 2018 06:18
Kattis Foosball Solution in Python
# I mainly use c++ to solve the problems but I use mainly Python in my school, so I thought I'd give Python a try in such problems
# Python3
import sys
import collections
n = int(sys.stdin.readline())
in_names = sys.stdin.readline().split()
@bricakeld
bricakeld / tree_truncate.py
Created April 7, 2019 07:21
Cut down sklearn tree to display a portion of a very large tree
import sys
import os
import re
dir = os.path.dirname(__file__)
def usage():
print('python tree_truncate.py <input dot file> <number of nodes> <optional: output dot file | default=out.dot>')
def check():

Keybase proof

I hereby claim:

  • I am bricakeld on github.
  • I am aldricbek (https://keybase.io/aldricbek) on keybase.
  • I have a public key ASCsXjxofO7ZdGyjxkoyYvMsaEncZ9mdWqO--W1u_uzqKwo

To claim this, I am signing this object: