Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yuanyu90221/local_max_time_period


https://github.com/yuanyu90221/local_max_time_period

Last synced: 16 days ago
JSON representation

Awesome Lists containing this project

README

        

# local_max_time_period

給一段時間的代幣價格,請找出最佳回報的進入時間與出去時間(進出僅一次)
Ex: [60,100, 58, 20, 56, 42, 20, 250, 194, 10, 1000]

max = 1000
min = 10
diff = 990

## 想到的解法

對於每個值去找當下的最大價差

然後跑完整個回圈