def maxProfit(self, prices):
        if len(prices) <= 1:
            return 0

        delta_prices = []  # \delta
        for i in xrange(1, len(prices)):
            delta_prices.append(prices[i]-prices[i-1])

        # O(n)
        profit = 0
        for i in xrange(len(delta_prices)):
            if delta_prices[i] > 0:
                profit += delta_prices[i]

        return profit
Retrieves directory entries.
dataset/ETHPy150Open algorhythms/LeetCode/121 Best Time to Buy and Sell Stock II.py/Solution.maxProfit--crossover with--dataset/ETHPy150Open log2timeline/dfvfs/dfvfs/vfs/sqlite_blob_file_entry.py/SQLiteBlobDirectory._EntriesGenerator