Solve LeetCode-style puzzles with arrays, strings, and dynamic programming.
Find the maximum profit from buying and selling a stock once.
Determine if the input string has valid parentheses ordering.
Find the length of the longest substring without repeating characters.
Find the contiguous subarray with the largest sum.
Calculate the number of ways to climb n stairs, taking 1 or 2 steps at a time.