GoldmanSachs CoderPad Round | Associate Software development Engineer
Company: Goldman Sachs
Role: Associate
Interview Stage: Phone Screen
Location: unknown
Year: unknown
Original Post Content:
Question 1: encode input string "aaaabbcccd" -> "a4b2c3d1"
Question 2: Given a 2-D String array of student-marks find the student with the highest average and output his average score. If the average is in decimals, floor it down to the nearest integer. The score may contain negative values too.
Example 1:
Input: [{"Bob","87"}, {"Mike", "35"},{"Bob", "52"}, {"Jason","35"}, {"Mike", "55"}, {"Jessica", "99"}]
Output: 99
Explanation: Since Jessica's average is greater than Bob's, Mike's and Jason's average.
I had some time left. So he asked me some Behavioural questions too.
Scenario 1: If a client requests you some confidential data, how would you answer and if he didn't listen and kept on forcing you to get that data, what would you do?
Scenario 2: If a colleague of yours takes your credit of work, how would you deal with that situation?
Follow up: If you have to work with him after that, how do you deal with that?