#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#  DESCRIPTION:
#       AUTHOR: artemirk@gmail.com ()
# ===============================================================================
import sys

def getmaxprofit(ray):
    result=0
    for i in range(len(ray)-1):
        for l in range(i+1,len(ray)):
                if result < ray[i]-ray[l]:
                    result = ray[i]-ray[l]
    return result

stockYesterday =[10,7,5,8,11,9]

print(getmaxprofit(stockYesterday))


b5d1dfdb6f1bb24c565492b4b82cdbc8ee237923
<mask token>


def getmaxprofit(ray):
    result = 0
    for i in range(len(ray) - 1):
        for l in range(i + 1, len(ray)):
            if result < ray[i] - ray[l]:
                result = ray[i] - ray[l]
    return result


<mask token>

<mask token>


def getmaxprofit(ray):
    result = 0
    for i in range(len(ray) - 1):
        for l in range(i + 1, len(ray)):
            if result < ray[i] - ray[l]:
                result = ray[i] - ray[l]
    return result


<mask token>
print(getmaxprofit(stockYesterday))

<mask token>


def getmaxprofit(ray):
    result = 0
    for i in range(len(ray) - 1):
        for l in range(i + 1, len(ray)):
            if result < ray[i] - ray[l]:
                result = ray[i] - ray[l]
    return result


stockYesterday = [10, 7, 5, 8, 11, 9]
print(getmaxprofit(stockYesterday))

import sys


def getmaxprofit(ray):
    result = 0
    for i in range(len(ray) - 1):
        for l in range(i + 1, len(ray)):
            if result < ray[i] - ray[l]:
                result = ray[i] - ray[l]
    return result


stockYesterday = [10, 7, 5, 8, 11, 9]
print(getmaxprofit(stockYesterday))

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#  DESCRIPTION:
#       AUTHOR: artemirk@gmail.com ()
# ===============================================================================
import sys

def getmaxprofit(ray):
    result=0
    for i in range(len(ray)-1):
        for l in range(i+1,len(ray)):
                if result < ray[i]-ray[l]:
                    result = ray[i]-ray[l]
    return result

stockYesterday =[10,7,5,8,11,9]

print(getmaxprofit(stockYesterday))

