Google | Software Engineer | Coding and Behavioral Interview
Timeline: 2026(Jan - Mar) • Fulltime • NewGrad •
Waiting for result
The interview consisted of both coding and behavioral questions. The coding challenge was to implement a function that calculates the maximum profit from stock prices given an array of prices. Behavioral questions focused on teamwork experience and conflict resolution.
I felt prepared as I practiced multiple problems on LeetCode. The interviewer was friendly and provided hints when I struggled with the coding question. After a certain time, I was prompted to submit my solution and moved on to the behavioral section.
I shared my experiences working on team projects during my internships and discussed how I learned to work in diverse teams.
Interview Questions
Maximum Profit
Implement a function to calculate the maximum profit from stock prices given an array of prices.
Difficulty: Easy | Reference: LC-121 | Tags: Array, Dynamic Programming
Best Time to Buy and Sell Stock II
You may buy and sell the stock as many times as you like. You need to maximize your profit.
Difficulty: Medium | Reference: LC-122 | Tags: Array, Greedy