Google L3 | Phone Screening | Interview
Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2025-08-25Added By Anonymous
Source: Link
Company: Google
Role: L3
Interview Stage: Phone Screen
Location: unknown
Year: unknown
Original Post Content:
Q1: Encode the string -
Input: s = "3[a]2[bc]"
Output: "aaabcbc"
Solved using stack
Q2: Decode the string, return shortest decoded string.
Input: s = "aaabcbc"
Output: "3[a]2[bc]"
Solved using recursion.