Software Engineer • Mid-Level
Software Engineer • Mid-Level
High QualityPractice Other Questions that Adobe Asked
Continue with targeted prep from Adobe's coding question bank and system design questions.
Interview Summary
Five-round onsite interview with Adobe covering binary tree algorithms, permutations, object-oriented API design, internationalization, and behavioral questions. The overall pace was relatively relaxed, with each round lasting about an hour and some interviewers spending nearly half the session discussing my experience.
Interview Details
Round 1 — Coding: Lowest Common Ancestor and Missing Nodes
We spent approximately 15 minutes discussing one of the projects on my resume. The questions focused on understanding my specific contributions and technical responsibilities.
Question 1 — Lowest Common Ancestor of a Binary Tree (LeetCode 236)
The coding problem was the standard Lowest Common Ancestor of a Binary Tree. Given a binary tree and two target nodes, the task was to find their lowest common ancestor. I initially implemented the standard recursive approach and explained how the result from each subtree contributes to identifying the common ancestor.
-
Follow-Up 1 — What If One Node Does Not Exist?
After I finished the initial implementation, the interviewer asked an important edge-case question: "What would your function return if one of the two target nodes wasn't actually present in the tree?" The standard recursive solution can return the node that exists even when the other target is missing. However, under the revised requirement, the correct result should be
nullbecause a common ancestor cannot exist unless both target nodes are present.I explained that the recursive process would need to track whether each target had been found, allowing the final result to distinguish a valid ancestor from an incomplete search. The interviewer then asked me to modify my implementation to handle this case.
-
Follow-Up 2 — What If Every Node Has a Parent Pointer?
The next question changed the tree structure. Suppose each node also contains a pointer to its parent. How would the lowest common ancestor problem change? We discussed treating the ancestor chains similarly to linked lists and using the parent pointers to find their intersection. The discussion also covered avoiding recursion and achieving constant auxiliary space.
Round 2 — Coding: Next Permutation and Previous Permutation
Question 1 — Next Permutation (LeetCode 31)
The second round focused on the Next Permutation problem. Given an array of integers, modify it in place to produce the next lexicographically greater permutation. If the current arrangement is already the largest possible permutation, rearrange it into the smallest permutation instead.
-
Example — Finding the Next Permutation
Before implementing the function, the interviewer asked me to manually work through an example in the shared document.
Input: nums = [2, 4, 6, 5, 3] Output: [2, 5, 3, 4, 6]Input: nums = [2, 4, 6, 5, 3] Output: [2, 5, 3, 4, 6]I walked through the transformation and explained the ordering changes. The interviewer allowed me to finish the explanation before moving on to implementation.
-
Additional Test Cases
After writing the code, we tested several edge cases.
Input: nums = [6, 4, 2] Output: [2, 4, 6] Explanation: The input is already the largest permutation. The next permutation wraps around to the smallest.Input: nums = [6, 4, 2] Output: [2, 4, 6] Explanation: The input is already the largest permutation. The next permutation wraps around to the smallest.Input: nums = [2, 2, 7] Output: [2, 7, 2] Explanation: The input contains duplicate values. The next permutation must be strictly greater in lexicographical order.Input: nums = [2, 2, 7] Output: [2, 7, 2] Explanation: The input contains duplicate values. The next permutation must be strictly greater in lexicographical order.We also considered a single-element array, which remains unchanged. The duplicate-value case was particularly important because the comparison must distinguish strictly greater values from equal ones.
-
Follow-Up — Implement Previous Permutation
The interviewer then asked how the algorithm could be adapted to find the previous lexicographical
Unlock Full Details
Create a free account to unlock this interview experience report.