Skip to content

Instantly share code, notes, and snippets.

0 False
1 False
2 False
3 False
4 False
5 False
6 True
7 False
8 True
9 False
# Musab K.
from string import ascii_letters
from itertools import combinations
nums = [list(sorted([int(y) for y in x.split(" ")])) for x in open("numlist.txt", "r").read().replace("\n\n", "\n").split("\n")[:-1]]
all_nums = []
for l in nums:
for n in l:
if not n in all_nums:
all_nums.append(n)
@musabkilic
musabkilic / 23.py
Created December 24, 2019 16:59
My Advent of Code 2019 - Day 23 Solution
import os
import sys
import shutil
import time
class InputNeeded(Exception):
pass
class Memory:
def __init__(self, codes):
@musabkilic
musabkilic / submit.py
Last active July 27, 2022 18:11
Nand2Tetris Testing Script
# Copyright Musab Kilic 2018
# Special thanks to Noam Nisan and Shimon Schocken
# Course page: https://www.coursera.org/learn/build-a-computer/
#
# Usage: python submit.py [folder(0-6)/full]
# Example: python submit.py 0
# python submit.py full
from __future__ import division
import os