Skip to content

Instantly share code, notes, and snippets.

View SioKCronin's full-sized avatar
💭
Content

Siobhan K Cronin SioKCronin

💭
Content
View GitHub Profile
class Solution(object):
def coinChange(self, coins, amount, results=[0]*(10000)):
"""
:type coins: List[int]
:type amount: int
:rtype: int
:type
"""
minCoins = amount
if amount in coins:
# Python Linear Programming
c = [5, 10]
A = [[-1,-1], [1,1]]
b = [-15, 25]
x0_bounds = (5, None)
x1_bounds = (7, None)
from scipy.optimize import linprog
res = linprog(c, A_ub = A, b_ub=b, bounds=(x0_bounds, x1_bounds),method="simplex",options={"disp":True})
print(res)
@SioKCronin
SioKCronin / .block
Last active September 17, 2016 11:41
Mission Power
license: mit
@SioKCronin
SioKCronin / .block
Last active September 17, 2016 11:36
Geoforms
license: mit
@SioKCronin
SioKCronin / .block
Created September 17, 2016 11:33
fresh block
license: mit