Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stocks #48

Open
alexanderGGreenberg opened this issue Mar 7, 2018 · 0 comments
Open

stocks #48

alexanderGGreenberg opened this issue Mar 7, 2018 · 0 comments
Labels
Difficult enhancement New feature or request

Comments

@alexanderGGreenberg
Copy link
Contributor

alexanderGGreenberg commented Mar 7, 2018

Implement the funciton in src/stocks.py with the following specification:

In order to make seven figures as a college student
you've decided to pick up the fine profession
of trading stocks!
Your objective is, given a list of historic stock prices
and a bank account balance, to return a list
containing the price that you should have bought
and then sold the stock, and an empty list if
you cannot afford the stock.
Example input: [9.5, 3.4, 3.3, 5.6, 7.0] and 50
Example output: [3.3, 7.0]
Assume no prices are repeated

@joelahoover joelahoover added enhancement New feature or request Difficult labels Mar 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Difficult enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants