Goldmansachs CoderPad Round

Anonymous User
653
Feb 06, 2024
Feb 06, 2024

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.
    i/p : S = "aabbbbbccddb"
    o/p: [2,5]
    explaination : As longest substring is 'bbbbb' of length 5 and start index as 2
    i/p: S = "aabbb22rrrrr345571111111"
    o/p: [17,7]
    explaination : 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...

Comments (4)