Showing 3 of 9 questions
You're given daily stock prices. Find the maximum profit you can make by buying and selling the stock once. You must buy before you sell.
#1. Best Time to Buy and Sell Stock
Implement a basic calculator to evaluate a simple expression string. The expression can contain non-negative integers, '+', '-', '*', '/' operators, and spaces; integer division should truncate toward zero.
#2. Basic Calculator II
You are given a string representing the order in which frogs are croaking. Determine the minimum number of frogs required to produce the entire croaking sequence, assuming they must croak in the order 'c', 'r', 'o', 'a', 'k'.
#3. Minimum Number of Frogs Croaking
Page 1 of 1 · 9 total