Tip 1: Focus on time-based problem-solving—aim for 20 minutes per medium problem and 40 minutes per hard problem.
Tip 2: Write code on a Google Doc, as this is the format used by Google. Ensure you're familiar with all syntax.
Tip 3: Practice, practice, and more practice.
Tip 1: Keep your LinkedIn profile updated, and turn on the "Open to Work" feature.
Tip 2: Ensure you can justify the work experience listed on your resume.
It was the preliminary DSA round conducted by Google. They typically expect you to code two medium or one large problem within 45–50 minutes, with the code being runnable and bug-free.
Design a file system in your preferred language.
The file system should support the following operations:
Step 1: Understand the questions clearly with the interviewer.
Step 2: Ask any clarifying questions. I asked if file duplicates could be present in multiple locations and what the input and output should be for each function.
Step 3: Try to look for a brute-force approach first. I could only think of a tree-based brute force approach at the time, and I explained that.
Step 4: Find the data structure that can best solve this problem. I thought that, because this is a directory structure where going into one folder allows me to choose more folders again, a Trie would be a good approach here.
Step 5: I explained my thought process to the person and discussed the time complexity it would help with. I was trying to optimize it, but the person told me that time was limited and to go ahead with coding.
Step 6: I started writing clean, class-based code. I created multiple functions to perform this functionality using a Trie.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?