diff --git a/algorithms/StockMaximize.py b/algorithms/StockMaximize.py new file mode 100644 index 0000000..e9010ac --- /dev/null +++ b/algorithms/StockMaximize.py @@ -0,0 +1,14 @@ +def stockmax(p): + c=p[len(p)-1] + a=0 + for i in range(len(p)-1,-1,-1): + if c