This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from itertools import combinations, combinations_with_replacement, permutations | |
from operator import add, sub, mul, truediv | |
target = 888 | |
numbers = (75, 25, 9, 8, 7, 6) | |
operations = (add, sub, mul, truediv) | |
def evaluation_tree(operators, numbers): | |
# op0 | |
# / \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env python3 | |
#______________________________________________________________________________ | |
from multiprocessing import Pool | |
import subprocess | |
from collections import defaultdict | |
from os import path | |
#______________________________________________________________________________ | |
# (device_exists, smart_status, smart_output) | |
def get_smart(device): |