Sample Answer
In interviews, I’m very explicit about starting with the brute-force, then systematically tightening it. For example, I got a variant of “given an array, find the length of the longest substring without repeating characters.” I first stated the naive approach: check every substring and verify uniqueness with a set. That’s O(n³): O(n²) substrings and O(n) to check each. I walked through why this wouldn’t scale beyond ~10⁴ characters. Then I moved to a sliding window with a hash map of last seen indices. I maintain two pointers, expand the right pointer, and when I see a duplicate, I move the left pointer to max(left, lastSeen + 1). That drops it to O(n) time and O(min(n, charset)) space. I also discussed trade-offs: slightly higher constant factors and more complex code, but in practice it handled inputs 10–100x larger and is the expected FAANG-level solution.
Keywords
In your civil engineering studies, what specific design coursework or project work did you complete related to irrigation channels or canals (e.g., design of lined/unlined canals, distributaries, minors)? Describe one such design in detail, including how you determined discharge, permissible velocity, section dimensions, and lining choice for Gujarat-type soil and climate conditions.
Based on your hydrology and irrigation engineering background, explain how you would estimate the irrigation water requirement for a kharif crop in a semi-arid region of Gujarat. Walk me through each step: from reference evapotranspiration estimation, crop coefficient selection, effective rainfall calculation, to arriving at canal discharge for a given command area.
Walk me through a recent multi-channel digital marketing campaign you managed end-to-end. How did you set objectives, choose channels, allocate budget, and measure success?
In your resume you note improving or optimizing [a process, KPI, or metric]. What specific baseline metrics did you start from, what steps did you personally take, and how did you verify that the improvement was due to your changes rather than external factors?
On your resume you mention working on a cross-functional project (e.g., involving multiple teams or stakeholders). Describe a situation from that project where priorities conflicted—how did you navigate the trade-offs and what was the final outcome?