Goldman Sachs | CoderPad Round | Bangalore/Hyd Location
- Location
- Bangalore/Hyderabad
- Posted
- 12 Mar 2025
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.
How it went
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.
Questions asked (2)
- 01
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 - 02
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, 0to0, c-1with the maximum possible value.
Example:0 0 5 0 1 0 2 0 1
Expected Output: 8