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

Solution for Team B (CS Games 2023) #29

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jayati915
Copy link

@jayati915 jayati915 commented Dec 4, 2022

CS Games 2023 Team B Application

PLEASE FILL IN THE FOLLOWING!

Full Name

Jayati Jayati

UWindsor Email

[email protected]

Application Form

Briefly explain how your solution works and how to run it

My solution offers a nested for loop, where each of the stock prices are compared each stock price on the previous days. If the stock price on a later day is higher than the price on any of the previous days, we calculate the difference (i.e. profit). We compare all the profits and store the best one along with other information corresponding to that profit like day/price of buying/selling. This information is then returned to the user.

@jayati915 jayati915 changed the title file upload Solution for Team B (CS Games 2023) Dec 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant