dexterpuru / leetcode_java

Archive for Leetcode solutions in Java
Creative Commons Zero v1.0 Universal
4 stars 15 forks source link

Best time to buy and sell stock #45

Closed ushachengan closed 4 years ago

ushachengan commented 4 years ago

PR for https://github.com/dexterpuru/leetcode_java/issues/41

dexterpuru commented 4 years ago

@ushachengan awesome work, code is really good, can you please shift this problem to arrays folders, because this is not much of a DP problem, the one with cool-down could be really good example for DP.

ushachengan commented 4 years ago

@dexterpuru moved the code inside Array folder. thanks

ushachengan commented 4 years ago

sure @Ak-Shaw , I will follow that and fix this folder name in my next PR as well.

YourAKShaw commented 4 years ago

@ushachengan I've fixed the name of the solution folder from this PR. Just keep that in mind from next time. 😄👍 Also, whenever working on your local setup, sync your forked version of the repo with the original. It'll help a lot.