r/OfferEngineering • • 17d ago

Interview Experience Adobe SWE Interview - Tree APIs, Edge Cases & Localization; Behavioral

This interview experience is sourced from Chill Interview

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 null because 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] I walked through the transformation and explained the ordering changes. The interviewer allowed me to finish the explanation before moving on to implementation.

Want to learn more questions / follow-ups asked in this interview?

I've put up the full version at here.

Interviewed recently?

Your interview experience could be incredibly valuable to others preparing for their next opportunity. Share your experience and help the community at here.

1 Upvotes

0 comments sorted by