Maximum Profit from Stock Prices
Asked at Meta · Coding Questions · Difficulty: Easy
Given the daily price of a stock, compute the best profit you can make. You implement two variants of the task.
Loading the problem…
More Meta interview questions
- LLM conceptual questions
- Implement a Two-Hidden-Layer MLP with Backpropagation in NumPy
- Dot Product with Run-Length Encoded Vectors
- Count Lakes Wrapped by a Given Island
- Minimum Remove to Make Valid Parentheses
- LLM with Beam Search and Nucleus Sampling (Meta MSL)