Showing 3 of 16 questions
You're given a string containing only 'Q', 'W', 'E', 'R' characters. Find the smallest substring you can replace to make the string balanced, meaning each character appears the same number of times.
#1. Replace the Substring for Balanced String
Given an array of numbers, shift only the non-negative elements to the left by a specified number of positions while keeping negative numbers in their original places.
#2. Rotate Non Negative Elements
You're given an array of numbers. Find the minimum number of merge operations (summing adjacent elements) needed to transform the array into a palindrome.
#3. Merge Operations to Turn Array Into a Palindrome
Page 1 of 1 · 16 total