Showing 3 of 9 questions
Given an array of integers, calculate the sum of the widths of all possible subsequences, where the width is defined as the difference between its maximum and minimum elements. Since the result can be very large, return it modulo ten to the ninth plus seven.
#1. Sum of Subsequence Widths
Given a string containing only 'a' and 'b' characters, determine the minimum number of deletions needed to make it balanced (all 'a's before all 'b's). You can only delete characters.
#2. Minimum Deletions to Make String Balanced
Given a string of digits, construct the largest possible palindromic number using those digits. Return the resulting palindromic string.
#3. Largest Palindromic Number
Page 1 of 1 · 9 total