This file contains hidden or 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/python | |
import math | |
from functools import lru_cache | |
@lru_cache(maxsize=10000) | |
def compute_optimal_price_slow(prices, start_from, num_delimiters): | |
raise ValueError("Interface has changed") | |
if len(prices)==start_from: | |
total_price=0 |