Message on Whatsapp 8879355057 for DSA(OA + Interview) + Fullstack Dev Training + 1-1 Personalized Mentoring to get 10+LPA Job
0 like 0 dislike
1,205 views
in Online Assessments by Expert (34,270 points) | 1,205 views

1 Answer

0 like 0 dislike

This is problem was asked in the Standard Chartered OA. I tried brute force approach but ofcourse that gave me TLE. It would be great if anybody could help.
image
image

by Expert (34,270 points)