1 dsa question was asked in interview which was supposed to be solved in 1 hour. There were 2 rounds in all. I was able to solve all questions and clear all rounds
Interview questions [1]
Question 1
You are given an integer array nums.
Partition the array into three (possibly empty) subsequences A, B, and C such that every element of nums belongs to exactly one subsequence.
Your goal is to maximize the value of: XOR(A) + AND(B) + XOR(C)
where:
XOR(arr) denotes the bitwise XOR of all elements in arr. If arr is empty, its value is defined as 0.
AND(arr) denotes the bitwise AND of all elements in arr. If arr is empty, its value is defined as 0.
Return the maximum value achievable.
Note: If multiple partitions result in the same maximum sum, you can consider any one of them.
The interviewer and recruiter were kind, and they provided feedback when I asked about the reason I wasn't selected. Although it was challenging to go through two interviews with different people back-to-back, it was still a valuable experience.
Interview questions [1]
Question 1
They asked an algorithm-related question that seemed to be around LeetCode medium to high difficulty level.
I applied online. The process took 3 weeks. I interviewed at Google in Jul 2025
Interview
OA only. No calls. Very short deadline. I had a week to prepare and spent most of it running timed drills on practice site, which felt similar to the real test. That helped with nerves. The questions weren’t too hard but required clean code fast.
Interview questions [1]
Question 1
Implement a basic string tokenizer
Validate bracket sequences