Software Engineer • Junior-Level
Software Engineer • Junior-Level
High QualityPrep Other Coding Questions Asked by Adobe
Continue with targeted prep from Adobe's coding question bank.
Interview Summary
I completed an Adobe online assessment that included two different technical exercises. The first was an algorithmic coding problem involving unit conversions and graph traversal. The second was a backend debugging and code review exercise focused on fixing a ticket confirmation workflow in a Django-based ticketing application.
The debugging exercise was particularly interesting because confirming a ticket required keeping multiple pieces of state consistent, including ticket status, inventory counters, hold expiration, Redis locks, and event availability. The overall difficulty was moderate, with the second part requiring more attention to backend correctness and state management.
Interview Details
Part 1 — Coding: Unit Conversion Using Graph Traversal
You are given a collection of conversion relationships between different measurement units. Each relationship defines a conversion factor between two units. For example, if unit A can be converted to unit B using a factor x, then a value v expressed in unit A corresponds to: value_B = value_A * x.
Given a starting unit and its initial numerical value, determine the equivalent values of all units connected to that starting unit through the provided conversion relationships.
Problem Requirements
The input consists of:
- A set of units.
- Conversion relationships between units.
- A conversion factor associated with each relationship.
- A starting unit with a known value.
The task is to calculate the equivalent value for every unit reachable from the starting unit. Two units may not have a direct conversion relationship. However, they may still be connected through intermediate units. The system must account for multiple conversion relationships when determining the equivalent value of a reachable unit.
Each relationship provides a numerical factor that determines how values change when moving between units. When multiple conversion relationships are followed, the corresponding factors affect the final equivalent value.
The conversion relationships can be represented as a weighted graph. Depending on how the input relationships are structured, the problem can be viewed as a graph or tree traversal exercise. The central challenge is correctly processing connected units while keeping track of conversion magnitudes.
The reported solution discussion included the following complexity for a tree-like or otherwise linear-size conversion graph:
- Time Complexity:
O(N) - Space Complexity:
O(N)
Here,
Unlock Full Details
Create a free account to unlock this interview experience report.