Google TPS Interview(Phone screening round)
Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2025-03-18Added By Anonymous
Source: Link
🧭 Experience: unknown
✅ Outcome: unknown
💰 Compensation: unknown
📍 Location: unknown
🏢 Company: Google
🎓 Education: unknown
🎁 Benefits: unknown
📅 Offer Date: unknown
Hello guys!!
I recently had an interview where I was given a problem and asked to start with the brute force approach. After explaining the approach, the interviewer asked me to write the code. However, instead of asking for an optimized solution afterward, they directly moved on to follow-up questions.
🤔 Was I supposed to provide the optimized solution myself?
I wasn’t sure if I should proactively mention the optimized approach or wait for the interviewer to ask. Since they didn't request it, I focused on answering the follow-ups.
🚀 Will this impact my result?
I handled the follow-ups well, but I’m wondering if not explicitly mentioning an optimized solution could affect the evaluation. Has anyone else faced a similar situation in a Google TPS round? Would love to hear insights from others who have gone through this!
💬 How do you usually approach this situation? Drop your thoughts below!
Problem Statement:
Given an array containing both negative and positive numbers, find indices i ≤ j such that arr[i] == arr[j] and the sum from i to j is maximized.
🔹 Example:
📌 Input: [1,2,3,4,1,5]
📌 Output: (0,4)
Follow-ups questions:
1️⃣ What if arr[i] == arr[j] condition is removed?
2️⃣ What if all elements are positive?
3️⃣ Discuss time complexity and edge cases.
✅ Outcome: unknown
💰 Compensation: unknown
📍 Location: unknown
🏢 Company: Google
🎓 Education: unknown
🎁 Benefits: unknown
📅 Offer Date: unknown
Hello guys!!
I recently had an interview where I was given a problem and asked to start with the brute force approach. After explaining the approach, the interviewer asked me to write the code. However, instead of asking for an optimized solution afterward, they directly moved on to follow-up questions.
🤔 Was I supposed to provide the optimized solution myself?
I wasn’t sure if I should proactively mention the optimized approach or wait for the interviewer to ask. Since they didn't request it, I focused on answering the follow-ups.
🚀 Will this impact my result?
I handled the follow-ups well, but I’m wondering if not explicitly mentioning an optimized solution could affect the evaluation. Has anyone else faced a similar situation in a Google TPS round? Would love to hear insights from others who have gone through this!
💬 How do you usually approach this situation? Drop your thoughts below!
Problem Statement:
Given an array containing both negative and positive numbers, find indices i ≤ j such that arr[i] == arr[j] and the sum from i to j is maximized.
🔹 Example:
📌 Input: [1,2,3,4,1,5]
📌 Output: (0,4)
Follow-ups questions:
1️⃣ What if arr[i] == arr[j] condition is removed?
2️⃣ What if all elements are positive?
3️⃣ Discuss time complexity and edge cases.