Google | Senior Dev | India | Jul 2020 | Reject
Anonymous User
989

Status: 15+ yrs S/W exp
Position: Senior Developer

Sharing my interviewing experience with Google for a Senior Dev role. I had a technical the phonescreen and was rejected. I was asked 2 questions.

Question 1: Given 2 input strings which are same except 1 character. You have to find the character which is different. For e.g. "rtymg" and "rtymhg", the output is "h"
Quertion 2: Implement this interface with the constraint that you have a limited amount of memory

interface TcpStream {
  // Save a packet in the stream, at ‘offset’ from the stream beginning.
  void takePacket(int offset, byte[] data);
  // Read data from stream.
  // If the data at the current position is not yet available, return 0
  // Otherwise, read data into dest and return the number of bytes read
  int read(byte[] dest);
}

I was able to code up the first question quite easily. But on the second question, I was not able to grasp the requirment at all and most of the time was spent in trying to understand the problem itself without much progress. Please add your replies if you understood the requirment well.
I feel that interview questions should be such that at-least the requirement is easily understood. The solution can of course be tough.

Comments (1)