Latest
Topics
Tags
News
Jobs
Tutorials
Forum
Join Us
Community
Problems
New Post
Log In
New Post
Latest
News
Jobs
Tutorials
Forum
Tags
Planet
Users
Log In
Sign Up
Site Message
Only Premium Users can view the Question
Question: Google | SWE | Online Screening | 22-08-2020
3
Entering edit mode
11 months ago
Shubhendu Goel
• 450
Bengaluru
For a string of lowercase alphabets you are allowed to perform 2 types of operations.
1. Remove the substring
"pr"
and gain
X
points.
2. Remove the substring
"rp"
and gain
Y
points.
Find the
maximum
points that you can gain.
Example
abcdpabcpprrrprp , X=4 , Y=5
Output :: 18
online-round
swe
google
free-public-post
• 2.2k views
ADD COMMENT
•
link
4.7 years ago
Shubhendu Goel
• 450
Login
before adding your answer.
Similar Posts
Loading Similar Posts
1