DEV Community

loading...

Discussion on: Best time to buy and sell 📈 (easy)

Collapse
santispavajeau profile image
Santiago Salazar Pavajeau Author

I think your solution is very clever using the spread operator to find the highest profit. I tried to share a solution where the step-by-step is very clear, so it can be rewritten in any language! Thanks again for yours, it is great!

Collapse
kais_blog profile image
Kai

Thank you :)