GOCC18-Summer Internship 2021 Question

Solved second question passing some test cases and unable to solve first question .
Can anyone suggest the approach for this questions.

1 Like

When I saw about GOOC webpage of google, they mentioned GOOC-16 and GOOC-18, which is the latest one i.e the contest held in 2020? And what will be the 2021 contest called GOOC-19? Btw I am new to these Internship exams, any short note about GOOC would be helpful :slightly_smiling_face: