Taro Logo

Web Developer Interview Experience - India

July 24, 2024
Positive ExperienceNo Offer

Process

The interview consisted of 3 coding rounds along with G&L questions. Each round was 45-60 minutes long. The questions were very standard and tricky. If anyone qualified in the first 2 rounds, they got a chance to proceed to the further rounds. The interview process was online. I qualified for 2 rounds, and both questions were from the file system.

Questions

Round 1: Approx 45 minutes

Question: Given a URI, traverse all its subdirectories and files, and return a list of the top 10 largest files in bytes, including their names and sizes. If the directories are empty, return '-1' as the result.

Input: uri: “C:/xvcv/bfbfbb/jbhdbb”

Output: 54789565 “C:/xvcv/bfbfbb/jbhdbb/dn” 7458225 “C:/xvcv/bfbfbb/jbhdbb/dn/xvhh” 1254788 “C:/xvcv/bfbfbb/jbhdbb/jkl” ... 112542 “C:/xvcv/bfbfbb/jbhdbb/pqr”

Hint: Use Linux Commands

Approach: I used recursion to traverse all subdirectories within a given URI. I employed storage class commands to retrieve the size of each file and list out the child files, which I stored in a list. Then, I sorted the list and returned the top 10 largest files from it. Before traversing, I checked for edge cases to ensure robustness.

Round 2: Approx 45 minutes

Question: Given a class with 3 member functions: create_directory(string filepath), create_file(string filename, string filepath), and bool find_filename_from_prefix(string pref, string filepath), implement these 3 member functions.

Input: create_directory // eg: filepath: /abc/f/d/x/ create_file // eg: filepath: /abc/f/d/x/ filename: google.yaml find_filename_from_prefix // eg: filepath: /abc/f/d/x/dsa.yaml prefix: ds

Was this helpful?

Interview Statistics

The following metrics were computed from 8 interview experiences for the Google Web Developer role in India.

Success Rate

13%
Pass Rate

Google's interview process for their Web Developer roles in India is extremely selective, failing the vast majority of engineers.

Experience Rating

Positive75%
Neutral25%
Negative0%

Candidates reported having very good feelings for Google's Web Developer interview process in India.

Google Work Experiences