Showing 3 of 9 questions
Find the largest substring of a given string that consists of three identical consecutive digits. Return the substring or an empty string if no such substring exists.
#1. Largest 3-Same-Digit Number in String
The problem involves decoding a string that follows a specific encoding rule: k[encoded_string], where the encoded_string inside the square brackets is repeated exactly k times. Your task is to decode the string and return the decoded string.
#2. Decode String
You're given a mountain array. Find the index of the peak element, which is the largest value in the array.
#3. Peak Index in a Mountain Array
Page 1 of 1 · 9 total