Showing 3 of 6 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
Find two numbers in a given array that add up to a specific target value, and return their indices. Essentially, you need to efficiently locate the pair that satisfies the sum requirement.
#2. Two Sum
Find the length of the longest substring within a given string that contains no repeating characters. The substring must be contiguous.
#3. Longest Substring Without Repeating Characters
Page 1 of 1 · 6 total