Skip to content

Instantly share code, notes, and snippets.

View fresheed's full-sized avatar

Egor Namakonov fresheed

View GitHub Profile
#! /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