Showing 3 of 3 questions
Find the smallest subarray within a given array that has the same degree as the entire array. The degree is defined as the highest frequency of any element.
#1. Degree of an Array
You need to set a cooking time on a microwave using only two buttons: a single digit entry and an increment button. Determine the minimum cost to reach the target time, given the costs of using each button.
#2. Minimum Cost to Set Cooking Time
Given a string with parentheses, determine the minimum number of parentheses you must remove to make the string valid. A valid string has balanced and properly nested parentheses.
#3. Minimum Remove to Make Valid Parentheses
Page 1 of 1 · 3 total