---
title: "Discussion on \"Episode 02 - Best time to buy the stock\" | Hashnode"
description: "Discussion on \"Episode 02 - Best time to buy the stock\". In this episode, we are going to explain one of the famous questions asked in a JavaScript interview. You will be given an array of integers that represents the prices of stock each day. Your task is to find the best buying and selling price that wil..."
url: "https://hashnode.com/posts/episode-02-best-time-to-buy-the-stock/64bed2e6da59a746d11b4cce"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Episode 02 - Best time to buy the stock](https://vigowebs.hashnode.dev/episode-02-best-time-to-buy-the-stock?utm_source=hashnode&utm_medium=feed)

In this episode, we are going to explain one of the famous questions asked in a JavaScript interview. You will be given an array of integers that represents the prices of stock each day. Your task is to find the best buying and selling price that wil...

Jul 24, 2023 · 2 min read · vigowebs.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#interview-questions](https://hashnode.com/tag/interview-questions)
-   [#coding-challenge](https://hashnode.com/tag/coding-challenge)

## Written by

[Vigo Webs](https://hashnode.com/@vigowebs)

@vigowebs · Chennai, India

  
[View profile](https://hashnode.com/@vigowebs)

We are full stack developer and mobile app developer. We build Android and Flutter mobile app. We sell digital products in Gumroad. Here, we are for knowledge sharing about development tutorials, tips and sharing useful resources.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
