Mathworks Interview Question | USA | EDG 2021

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2020-10-10Added By Anonymous
Source: Link
Company: MathWorks
Role: unknown
Stage: Interview
Location: USA
Year: 2021

Original Post:
Hi, I was asked this question in Mathworks. I was able to do a naive solution of counter but couldn't come up with an optimized approach. My solution timed out. Can someone help?

Comments