Panda Guru LogoPanda
Guru

Goldman Sachs Online Assessment

Round 1

Questions:

Problem 1 - Easy

Given n number of kids, t toys and random number d from where the distribution will start, find the last kid who will get the toy. Assume kids are sitting in ascending order and in a circular way.

Input:

Example:

Answer for above is 2. As we will start from 1 and the kid getting the last toy is 2.

ans = (D + T - 1) % N;

Problem 2 - Medium

Given a string '1192', find the number of different words that can be formed.

Example:

Answer for above is 3.

Similar problem to Leetcode Decode Ways.

The assessment was for 120 minutes. I was able to solve both problems in 15 minutes. What are my chances of getting an interview call?

Candidate's Approach

No approach provided.

Interviewer's Feedback

No feedback provided.