Showing 3 of 3 questions
Calculate the total score of a string by finding the closest unmarked character that is its alphabetical mirror for each character from left to right. Each successful pair adds points based on their distance apart, and each character can only be used once.
#1. Find Mirror Score of a String
Given a set of coin denominations and a target amount, find the minimum number of coins needed to reach that amount. You can assume you have an unlimited supply of each coin type.
#2. Coin Change
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.
#3. Best Time to Buy and Sell Stock
Page 1 of 1 · 3 total