Code With Cisco '23 Difficult Question

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2023-06-28Added By Anonymous
Source: Link
Company: Cisco
Role: unknown
Interview Stage: unknown
Location: unknown
Year: 2023

You are given a string , in one operation You can select a character present in the string and delete a substring containing only that character , calculate the min number of operations to make the string empty.\neg: ABACA -->AACA ( Remove B) --> AAA (Remove C) --> end ...3 is the answer I am also attaching the screenshot though it is not clear enough!image
Comments