Showing 3 of 3 questions
Given a string of digits and spaces representing a phone number, remove all spaces and dashes, then regroup the digits into blocks of length three or two according to a specific formatting rule.
#1. Reformat Phone Number
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
Given an array of integers, determine how many triplets sum up to a multiple of a given number. Count the number of such divisible triplets.
#3. Number of Divisible Triplet Sums
Page 1 of 1 · 3 total