Goldman Sachs | CoderPad Round | Bangalore/Hyd Location

goldman sachs logo
goldman sachs
Bangalore/Hyderabad
March 12, 202570 reads

Summary

I had a CoderPad round with Goldman Sachs where I was given two DSA questions to solve within a predefined function, handling edge cases and writing basic test cases.

Full Experience

My CoderPad round for Goldman Sachs was scheduled for March 12th. The interview was conducted on Zoom, and the Data Structures and Algorithms questions were presented on the GS CoderPad platform. I was given two coding problems and instructed to write optimal solutions within a predefined function. Additionally, I had to consider edge cases and provide basic test cases to validate my solutions for both problems.

Interview Questions (2)

Q1
Longest Continuous Characters
Data Structures & Algorithms

Given a string like "aabbbbccd", find the starting index and length of the longest continuous characters in the string.
Example: "aabbbbccd"
Expected Output: 2, 4

Q2
Max Value Path in 2D Grid
Data Structures & Algorithms

Given a 2D grid, each cell has an item which has value >=0. We are standing at the bottom-left cell of the grid and need to reach the top-right cell. So we need to reach from r-1, 0 to 0, c-1 with the maximum possible value.
Example:

0 0 5
0 1 0
2 0 1

Expected Output: 8

Discussion (0)

Share your thoughts and ask questions

Join the Discussion

Sign in with Google to share your thoughts and ask questions

No comments yet

Be the first to share your thoughts and start the discussion!