Showing 3 of 3 questions
You are given an array of numbers and a limited number of operations. In each operation, you select a number, add it to your score, and update the number. Maximize your total score after applying all the operations.
#1. Maximal Score After Applying K Operations
Imagine two islands represented by ones in a grid of zeros and ones. Find the shortest path to connect the two islands by changing zeros to ones.
#2. Shortest Bridge
You are given two strings and a maximum cost. Find the length of the longest common substring you can create by changing characters in the first string to match the second string, where each character change has a cost.
#3. Get Equal Substrings Within Budget
Page 1 of 1 · 3 total