Goldmansachs CoderPad Round
Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2024-02-06Added By Anonymous
Source: Link
Company: Goldman Sachs
Role: unknown
Interview Stage: Phone Screen
Location: unknown
Year: unknown
Original Post Content:
Asked about resume and some projects what I did. Like Spring framework, Java based, etc. Some behavioral questions and jumped to coderpad.
Two questions:
1) Return the start index and length of the longest substring having identical characters in a given String.
Input: S = "aabbbbbccddb"
Output: [2,5]
Explanation: As longest substring is 'bbbbb' of length 5 and start index as 2.
Input: S = "aabbb22rrrrr345571111111"
Output: [17,7]
Explanation: As '1111111' is the longest substring of length 7 and start index =17.
2) Given a list of lists of students and scores, return student with highest average.
All the best readers...