Interview guides · Clever Devices
Clever Devices Software Engineer Interview Guide
Clever Devices Software Engineer interview guide: reported rounds, questions and how candidates describe the process.
The 60-second brief
As a Software Engineer at Clever Devices, you will play a crucial role in developing innovative software solutions that enhance public transportation systems. Your work will directly impact the efficiency and reliability of transit operations, improving the experience for both operators and passengers. The position is pivotal, as it involves designing, coding, and implementing complex software systems that manage real-time data and streamline transit communications. This role is not just about writing code; it involves collaborating with cross-functional teams to ensure that software solutions align with business goals and user needs. You will contribute to projects that integrate various technologies, including data analytics, user interfaces, and system architecture.
This guide is scoped to a Software Engineer candidate at Clever Devices.
Focus areas
- Java
- Threading / Multithreading
- Data Structures
The Clever Devices interview process
Clever Devices candidates report 3 rounds over 3-5 weeks. The stages below are what candidates describe, not a published process.
Initial Screening
Candidates undergo an initial screening to assess their qualifications for the Software Engineer role.
What to demonstrate
- Candidates undergo an initial screening to assess their qualifications for the Software Engineer role
- Depth in Java
How to prepare
- Be able to walk your CV end to end in two minutes, and say why this company specifically.
- Have your salary expectations, notice period and location constraints ready, and ask for the rest of the loop in writing.
Technical Assessments
Candidates participate in technical assessments, including coding challenges and problem-solving exercises.
What to demonstrate
- Candidates participate in technical assessments
- Including coding challenges and problem-solving exercises
How to prepare
- Answer aloud and timed: Describe your experience with RESTful APIs and how you have implemented them in past projects.
- Answer aloud and timed: How do you approach debugging a complex software issue?
Final Interview
The process concludes with a final interview with senior management to evaluate overall fit.
What to demonstrate
- The process concludes with a final interview with senior management to evaluate overall fit
- Depth in Java
How to prepare
- Answer aloud and timed: Given a set of data, how would you determine the most efficient way to process and analyze it?
- Answer aloud and timed: How would you approach optimizing an existing algorithm to improve performance?
Where candidates lose points
Understand the Company’s Mission
Familiarize yourself with Clever Devices’ mission and how your role contributes to it. This will help you articulate your fit during interviews.
Practice Coding Challenges
Regularly engage with coding platforms to sharpen your skills in algorithms and data structures, as these will be pivotal during technical assessments.
Communicate Openly
During interviews, don’t hesitate to ask clarifying questions if you do not understand something. This shows your willingness to learn and engage.
Prepare Examples
Have specific examples ready that demonstrate your problem-solving process and collaborative experiences, as these will be key during behavioral interviews.
Questions & practice
Can you explain the concept of multithreading and how it is implemented in Java?
Medium · Technical / Domain Questions
Approach
- Say what the runtime actually does before reasoning about the code.
- Name what is shared across threads and what owns each piece of state.
- Identify the window where an invariant is briefly untrue.
- Distinguish a value from a reference to it, and say which one you handed out.
Follow-up
- What happens if two callers reach this at the same time?
- Where could this allocate more than you expect?
How would you approach optimizing an existing algorithm to improve performance?
Medium · Problem-Solving / Case Studies
Approach
- Restate the input: its shape, its size, and what is guaranteed about it.
- Name the brute-force solution and its complexity before improving on it.
- Choose the data structure from the access pattern, not from familiarity.
- State the target complexity and say which constraint rules the naive version out.
Follow-up
- How does this change if the input no longer fits in memory?
- What is the worst case, and how likely is it on real data?
Write a function to reverse a linked list.
Medium · Coding / Algorithms
Approach
- Restate the input: its shape, its size, and what is guaranteed about it.
- Name the brute-force solution and its complexity before improving on it.
- Choose the data structure from the access pattern, not from familiarity.
- State the target complexity and say which constraint rules the naive version out.
Follow-up
- How does this change if the input no longer fits in memory?
- What is the worst case, and how likely is it on real data?
How would you implement a stack using an array?
Medium · Coding / Algorithms
Approach
- Restate the input: its shape, its size, and what is guaranteed about it.
- Name the brute-force solution and its complexity before improving on it.
- Choose the data structure from the access pattern, not from familiarity.
- State the target complexity and say which constraint rules the naive version out.
Follow-up
- How does this change if the input no longer fits in memory?
- What is the worst case, and how likely is it on real data?
Describe an algorithm to find the longest substring without repeating characters.
Medium · Coding / Algorithms
Approach
- Restate the input: its shape, its size, and what is guaranteed about it.
- Name the brute-force solution and its complexity before improving on it.
- Choose the data structure from the access pattern, not from familiarity.
- State the target complexity and say which constraint rules the naive version out.
Follow-up
- How does this change if the input no longer fits in memory?
- What is the worst case, and how likely is it on real data?
Denormalise tenant onto revisions and backfill it live
Hard · denormalisation · online migration · backfill
resource_revision (revision_id, resource_id, version, actor_user_id, change_kind, patch, request_id, created_at) has 400M rows and no tenant column; tenant_id lives only on resource. Two reads need it: a tenant-scoped audit feed ordered by created_at DESC, and an offboarding purge. Both join back to resource today. Justify adding tenant_id to resource_revision against those two reads, name the anomaly the copy introduces and the constraint that prevents it, then give the ordered migration for a live table taking 1.2k writes/second — the lock each step takes, how the backfill is batched, and where each step stops being reversible. PostgreSQL 16.
Approach
- Justify from the access path rather than from taste. Without the column, the audit feed either scans resource_revision by created_at and discards other tenants' rows, or resolves the tenant's resource_ids first and probes with them — both proportional to the tenant's whole history rather than to one page. With (tenant_id, created_at DESC, revision_id DESC) it is a seek that stops at 50 rows, and the purge becomes a ranged delete instead of a join.
- Name the cost exactly: a second copy of a fact can disagree with the first. Make the disagreement unwritable rather than documented — add UNIQUE (resource_id, tenant_id) on resource so it can serve as a foreign-key target, then FOREIGN KEY (resource_id, tenant_id) REFERENCES resource (resource_id, tenant_id) on the revision table. A revision can then only ever carry its parent's tenant.
- Step one, expand: ALTER TABLE resource_revision ADD COLUMN tenant_id BIGINT NULL, with no default, so it is a catalogue change and no rewrite. It still needs ACCESS EXCLUSIVE for an instant, and that instant queues behind the longest open transaction on the table while every later query queues behind it — set lock_timeout to 2s and retry rather than wait.
- Step two, dual-write: deploy the writer that populates tenant_id on every new revision while reads still use the join. Reversible by redeploying the previous build, because nothing reads the column yet.
Follow-up
- The backfill is half finished and a rollback is required. What state is the table in, and what does the previous build do with a half-populated column?
- How do you verify the backfill actually finished, given rows are still being inserted while it runs?
Write the update path that detects a concurrent edit
Medium · optimistic concurrency · transactional outbox · audit history
resource carries version INT NOT NULL DEFAULT 1. resource_revision holds revision_id, resource_id, version, actor_user_id, change_kind, patch JSONB, request_id, created_at with UNIQUE (resource_id, version). outbox_event holds aggregate_type, aggregate_id, aggregate_version, event_type, payload, status. A PUT carries the version the client read. Write the exact statements for the single transaction that applies the edit, records the revision and enqueues 'resource.updated', and give the handler's branch on zero affected rows. Then say what PostgreSQL 16 does under READ COMMITTED when two of these updates hit one row at once.
Approach
- One transaction, three writes, no network call inside it: UPDATE resource SET title = $3, version = version + 1, updated_at = now() WHERE resource_id = $1 AND tenant_id = $4 AND version = $2; then INSERT the resource_revision row at version $2 + 1; then INSERT the outbox_event row at the same aggregate_version. The event goes to a table rather than a broker because no transaction spans both.
- Branch on the affected-row count before doing anything else. Zero has three causes — stale version, wrong tenant, row gone — so re-read once and map to 409 carrying the current version, or 404 for an id outside the caller's tenant, which also stops the endpoint confirming that another tenant's id exists.
- State the engine behaviour instead of assuming it. Under READ COMMITTED the second UPDATE blocks on the row lock, and when the first commits PostgreSQL re-evaluates the WHERE clause against the newly committed row, so the version predicate now fails and the statement reports zero rows. Under REPEATABLE READ the identical collision raises SQLSTATE 40001 instead, so the handler must fold both shapes into one conflict response.
- Keep UNIQUE (resource_id, version) even though the predicate already serialises writers. It is what makes a lost update unwritable if any other path ever reaches the revision table, and it converts a logic bug into 23505 rather than into a silently missing history row.
Follow-up
- A client sends the version it read ten minutes ago and the resource has moved three versions. What is in your 409 so it can resolve the conflict without a full re-fetch?
- Two editors, two disjoint fields, no overlap. Does your answer still refuse the second write, and should it?
What are the key differences between an interface and an abstract class in Java?
Medium · Technical / Domain Questions
Approach
- Clarify what is being asked and what a complete answer contains.
- State your assumptions explicitly before working the problem.
- Say what you would check first and why it is the highest-information step.
- Work from the requirement backwards to the design.
Follow-up
- What assumption would you test first?
- How would you know your answer was wrong?
Given a set of data, how would you determine the most efficient way to process and analyze it?
Medium · Problem-Solving / Case Studies
Approach
- Clarify what is being asked and what a complete answer contains.
- State your assumptions explicitly before working the problem.
- Say what you would check first and why it is the highest-information step.
- Work from the requirement backwards to the design.
Follow-up
- What assumption would you test first?
- How would you know your answer was wrong?
How do you approach debugging a complex software issue?
Medium · Technical / Domain Questions
Approach
- Establish what changed and when, before forming any theory.
- Pick a bisection that eliminates candidates whichever way it turns out.
- Check the instrumentation before believing the symptom.
- Separate the trigger from the cause; the deploy is rarely the bug.
Follow-up
- What would you look at first, and what would it rule out?
- How would you tell a cause from a coincidence here?
Suggested practice checklist
Built from the rounds and topics Clever Devices candidates report.
Day 1 — Map the Clever Devices loop
- Write out the reported sequence: Initial Screening, Technical Assessments, Final Interview.
- For each round, write one sentence on what it is judging, from the description above, and mark the one you are least ready for.
Deliverable: A one-page map of the 3 reported rounds, with the weakest marked.
Day 2 — Work Java
- Spend the session on Java, which Clever Devices candidates report being tested on.
- Write one worked example in Java and time yourself on it.
Deliverable: One timed worked example in Java.
Day 3 — Work Threading / Multithreading
- Spend the session on Threading / Multithreading, which Clever Devices candidates report being tested on.
- Write one worked example in Threading / Multithreading and time yourself on it.
Deliverable: One timed worked example in Threading / Multithreading.
Day 4 — Work Data Structures
- Spend the session on Data Structures, which Clever Devices candidates report being tested on.
- Write one worked example in Data Structures and time yourself on it.
Deliverable: One timed worked example in Data Structures.
Day 5 — Answer out loud: Technical / Domain Questions
- Answer aloud, timed: What are the key differences between an interface and an abstract class in Java?
- Answer aloud, timed: Can you explain the concept of multithreading and how it is implemented in Java?
Deliverable: Spoken answers to 2 reported Technical / Domain Questions question(s), under time.
Day 6 — Answer out loud: Problem-Solving / Case Studies
- Answer aloud, timed: Given a set of data, how would you determine the most efficient way to process and analyze it?
- Answer aloud, timed: How would you approach optimizing an existing algorithm to improve performance?
Deliverable: Spoken answers to 2 reported Problem-Solving / Case Studies question(s), under time.
Day 7 — Answer out loud: Behavioral / Leadership Questions
- Answer aloud, timed: Can you describe a situation where you had to work collaboratively with colleagues from different departments?
- Answer aloud, timed: How do you handle conflicts within a team? Provide an example.
Deliverable: Spoken answers to 2 reported Behavioral / Leadership Questions question(s), under time.
Behavioural preparation
Behavioural rounds judge the decision you made and what it cost.
Describe your experience with RESTful APIs and how you have implemented them in past projects.
Medium · Technical / Domain Questions
Approach
- Pick a story where you made the decision, not one where you watched it.
- State the situation in two sentences and spend the rest on the reasoning.
- Give the blast radius: what could have broken, and what you measured.
- Name the disagreement and how you resolved it with evidence.
Follow-up
- What would you do differently if you ran that again?
- How did you know your change caused the improvement?
Describe a time when you faced a challenging technical problem. What steps did you take to resolve it?
Medium · Problem-Solving / Case Studies
Approach
- Pick a story where you made the decision, not one where you watched it.
- State the situation in two sentences and spend the rest on the reasoning.
- Give the blast radius: what could have broken, and what you measured.
- Name the disagreement and how you resolved it with evidence.
Follow-up
- What would you do differently if you ran that again?
- How did you know your change caused the improvement?
Can you describe a situation where you had to work collaboratively with colleagues from different departments?
Medium · Behavioral / Leadership Questions
Approach
- Pick a story where you made the decision, not one where you watched it.
- State the situation in two sentences and spend the rest on the reasoning.
- Give the blast radius: what could have broken, and what you measured.
- Name the disagreement and how you resolved it with evidence.
Follow-up
- What would you do differently if you ran that again?
- How did you know your change caused the improvement?
How do you handle conflicts within a team? Provide an example.
Medium · Behavioral / Leadership Questions
Approach
- Pick a story where you made the decision, not one where you watched it.
- State the situation in two sentences and spend the rest on the reasoning.
- Give the blast radius: what could have broken, and what you measured.
- Name the disagreement and how you resolved it with evidence.
Follow-up
- What would you do differently if you ran that again?
- How did you know your change caused the improvement?
What motivates you to succeed in your role as a Software Engineer?
Medium · Behavioral / Leadership Questions
Approach
- Pick a story where you made the decision, not one where you watched it.
- State the situation in two sentences and spend the rest on the reasoning.
- Give the blast radius: what could have broken, and what you measured.
- Name the disagreement and how you resolved it with evidence.
Follow-up
- What would you do differently if you ran that again?
- How did you know your change caused the improvement?