Goldman Sach - Virtual Interview
Anonymous User
6214

Hello Folks,
Till day before yesterday, everything was routine. Then, one of the Goldman Sach HR approached me via a LinkedIn. She told me about the opening which matches my profile. She asked me whether, I am interested in that. Neither I was looking for any job nor I was preparing; but still I said yes to her. After that she shared test link to me. I spend one day to go through the recently asked question. I complied list of question which were asked recently.

Below are the question that was asked in test:
1.) Given a string with repeating characters and a burst length , output the string such that count of same adjacent characters in string are less than burst length.
eg: Input = abbccccdd, 3 Output = abbdd ; Input = abbcccdeaffff, 3 Output = abbdea

2.) Given a matrix of integers, task is to find out number of positional elements. A positional element is one which is either minimum or maximum in a row or in a column.
eg: Input : a = {{1, 3, 4}, {5, 2, 9}, {8, 7, 6}} Output : 7

I was able to solve both questions on time, as I have seen similar question before, but I made mistake in understanding the twist. I simply, wrote the code which I remembered.
I have decided to spend time in imporving coding skills not because I want to switch but, not to get stagnated.
Take-away:

  1. Read the question before writing code.
  2. Think of the corner cases
  3. Be calm

Thanks

Comments (13)