Reddit Question · Jun 2023

Got this problem in Online Assessment which I could not solve. How would you approach it?

41 upvotes 53 replies

Question Details

The problem sounds simple. Given a string **str**. You are allowed to delete only some contiguous characters if all the characters are the same in a single operation. The task is to find the minimum n

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Strings Dynamic Programming