What ServiceTitan's engineering interviews ask, per candidate reports: the C# MultiMap round, an async downloader, system design, and a prep plan.
If you are searching for Service Titan interview questions before an engineering loop, the short version is this: one candidate describes three technical rounds of about 90 minutes each, and a second describes a HackerRank coding round with the same MultiMap theme. In the first you implement a MultiMap class against an interface and a test suite, then write extension methods such as Union and Intersect. In the second you build an asynchronous parallel URL downloader and test it. The third is system design; one candidate was asked to design a WhatsApp-style messenger with file sending. The exercises are C#-flavoured, and in the reports the candidate had to get the tests passing.
That picture comes from a small number of anonymous candidate reports, so treat it as a pattern, not a promise. This page covers software engineering roles only, based on the two engineering reports above.
What the loop looks like
ServiceTitan builds software for trade contractors: HVAC, plumbing, electrical, roofing and similar businesses, covering dispatch, scheduling, CRM, accounting and payments. At least one ServiceTitan engineering posting (a Principal Software Engineer role, since removed) asks for the Microsoft .NET stack (C#, ASP.NET MVC, Web APIs) and SQL databases, which fits the C#-shaped exercises: interfaces, IEnumerable, extension methods.
Two reports on Taro, a career platform, are detailed enough to plan around:
- Report — Round — What was asked
- Senior Software Engineer, Orlando, Dec 2024 — Coding 1 (90 min, two interviewers) — Implement an interface that also implements IEnumerable ("a multimap like everyone says"); all tests must pass. Then write extension methods such as Union and Intersect.
- Same candidate — Coding 2 (90 min) — Implement a parallel URL downloader asynchronously. The download call sits behind an interface you don't implement. Write tests.
- Same candidate — System design (90 min) — Design a WhatsApp-like messaging system that can send files. The candidate passed both coding rounds and was rejected here.
- Engineering Director, US, Mar 2025 — Coding (HackerRank) — Implement a MultiMap where each key holds a list of values, from an interface with listed methods, including Flatten(). Extension methods followed; the candidate ran out of time.
Two details are worth reading twice. The director-level candidate did not get an offer, and was told the team needed someone with deeper day-to-day C# experience. So C# fluency may count as well as the data structure itself: the director-level candidate took the interviewer's comment about daily C# experience as the reason they would not advance. And the senior candidate cleared the code and failed on design, so don't spend the whole week on round one.
Round 1: the MultiMap and its extension methods
1. "Implement this MultiMap interface so the tests pass."
What it tests: generics, choosing an internal structure, and finishing under time with the test suite as your spec.
Read the interface and the tests before writing anything. They answer most of the design questions: whether duplicates are allowed, what Get returns for a missing key, and whether Count means keys or values. A version that covers the usual methods:
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
public class MultiMap<TKey, TValue> : IEnumerable<KeyValuePair<TKey, TValue>>
where TKey : notnull
{
private readonly Dictionary<TKey, List<TValue>> _map = new();
public int Count { get; private set; } // total values, not keys
public IEnumerable<TKey> Keys => _map.Keys;
public void Add(TKey key, TValue value)
{
if (!_map.TryGetValue(key, out var values))
{
values = new List<TValue>();
_map[key] = values;
}
values.Add(value);
Count++;
}
public IReadOnlyList<TValue> Get(TKey key)
{
if (_map.TryGetValue(key, out var values)) return values.AsReadOnly();
return Array.Empty<TValue>();
}
public bool Remove(TKey key, TValue value)
{
if (!_map.TryGetValue(key, out var values) || !values.Remove(value)) return false;
Count--;
if (values.Count == 0) _map.Remove(key); // never leave an empty list behind
return true;
}
public bool RemoveAll(TKey key)
{
if (!_map.Remove(key, out var values)) return false;
Count -= values.Count;
return true;
}
public IEnumerable<TValue> Flatten() => _map.Values.SelectMany(v => v);
public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator()
{
foreach (var (key, values) in _map)
foreach (var value in values)
yield return new KeyValuePair<TKey, TValue>(key, value);
}
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
}What to say while you write it:
- Why `Dictionary<TKey, List<TValue>>`. Microsoft documents Dictionary lookups as close to O(1) because it is a hash table. A List keeps insertion order and allows duplicates. If the tests expect unique values per key, swap in HashSet<TValue>, which also makes removing a single value cheaper.
- Null keys. A Dictionary key cannot be null, so the notnull constraint states that up front. Values can be null.
- Missing keys. The Dictionary indexer throws KeyNotFoundException for a missing key; returning an empty list from Get is friendlier, but follow whatever the tests expect.
- Empty lists. Removing the last value should remove the key, or Keys and any key count will report keys that hold nothing.
- Why not `Lookup`? .NET already has Lookup<TKey,TElement>, which maps keys to collections of values. Microsoft notes it has no public constructor and is immutable once built, so it cannot back a class that needs Add and Remove. Mentioning that shows you know the framework.
2. "What is the complexity of each operation?"
What it tests: whether you can reason about your own code rather than recite.
With the version above: Add, Get and RemoveAll are O(1) on average. Remove(key, value) is O(k), where k is the number of values under that key, because List.Remove scans; a HashSet brings it to O(1) on average at the cost of losing duplicates. Enumerating or calling Flatten is O(n) over all values. Space is O(K + V) for K keys and V values. Then name the trade-off you made and why.
3. "Now write Union, Intersect and Except as extension methods."
What it tests: pinning down vague requirements before coding.
The trap is semantics. Does Intersect compare whole key-value pairs or just keys? If a value appears twice under a key in both maps, is it kept once or twice? Ask, or read the tests. For reference, LINQ's Enumerable.Intersect returns distinct elements, in the order they appear in the first sequence. If the tests expect set behaviour per key, this works:
public static class MultiMapExtensions
{
public static MultiMap<TKey, TValue> Intersect<TKey, TValue>(
this MultiMap<TKey, TValue> first, MultiMap<TKey, TValue> second)
where TKey : notnull
{
var result = new MultiMap<TKey, TValue>();
foreach (var key in first.Keys)
{
var other = new HashSet<TValue>(second.Get(key));
foreach (var value in first.Get(key).Distinct())
if (other.Contains(value)) result.Add(key, value);
}
return result;
}
}Union and Except follow the same shape. Say out loud which semantics you chose; a correct method built on the wrong reading still fails the tests.
4. "How would you make it thread-safe?"
What it tests: whether you know where the obvious answer breaks.
The obvious answer is ConcurrentDictionary<TKey, List<TValue>>. It is not enough on its own: the inner List is not thread-safe, so two threads adding to the same key can still corrupt it. Microsoft also warns that GetOrAdd and AddOrUpdate are thread-safe but not atomic, because the value factory runs outside the dictionary's internal lock, so the value you get back may not be the one your factory created. A good answer starts with one lock around every operation, which is simple and correct, then discusses finer-grained options (per-key locks, immutable value lists swapped in) only if the interviewer asks about throughput.
Round 2: the async downloader
5. "Download these URLs in parallel. The download method is behind an interface."
What it tests: async/await fluency, bounded concurrency, and testing code you can't run against the network.
On .NET 6 or later, Parallel.ForEachAsync does most of the work. By default it runs at most Environment.ProcessorCount iterations at once; downloads are I/O-bound, so set the limit yourself:
public interface IDownloader
{
Task<string> DownloadAsync(string url, CancellationToken ct);
}
public static async Task<IReadOnlyDictionary<string, string>> DownloadAllAsync(
IDownloader downloader, IEnumerable<string> urls, int maxParallel, CancellationToken ct)
{
var results = new ConcurrentDictionary<string, string>();
var options = new ParallelOptions { MaxDegreeOfParallelism = maxParallel, CancellationToken = ct };
await Parallel.ForEachAsync(urls.Distinct(), options, async (url, token) =>
{
results[url] = await downloader.DownloadAsync(url, token);
});
return results;
}The follow-ups write themselves, so raise them first. As written, one failed download fails the whole call; ask whether partial results are wanted, and if so catch per URL and record the error next to the result. Pass the token through so cancellation reaches the download. If the interviewer wants it done without Parallel.ForEachAsync, SemaphoreSlim plus Task.WhenAll is the classic alternative.
For the tests, write a fake IDownloader that waits briefly, counts calls in flight with Interlocked, and records the peak. Then assert three things: every URL has a result, the peak never exceeded maxParallel, and a cancelled token stops the run. Because the interface is the seam, none of this touches the network.
Round 3: system design
6. "Design a WhatsApp-like messenger that can send files."
What it tests: structure under ambiguity, and whether you separate the hard parts.
This is the round the Orlando candidate failed, and the report says the interviewer gave little help, so bring your own structure:
- Requirements first. One-to-one or groups? Delivery and read receipts? Offline users? Message history on new devices? File size limits? Write the answers down.
- Connections. Clients hold a persistent connection (WebSockets, for example) to a gateway tier; a lookup records which gateway each online user is on.
- Messages. Store messages by conversation, ordered by time or sequence number; deliver to online recipients through their gateway and queue for offline ones.
- Files. Keep large bytes out of the message path. The client uploads to object storage, then sends a normal message that carries a reference to the file.
- Failure. Retries with idempotency keys so a resend doesn't duplicate a message; acknowledgements so the sender knows what arrived.
Tie it back to the business if you can. Technicians in the field on patchy mobile signal, sending photos of a job to the office, is the same problem, and it shows you thought about who uses ServiceTitan.
Recruiter and hiring manager questions
7. "Why ServiceTitan?"
ServiceTitan's own story is that the founders built it to help their fathers run a better contracting business. Use that only if it connects to something true for you: a family business, time in the trades, or interest in software for people who don't sit at desks. A generic "I love SaaS" answer wastes the question.
8. "Tell me about a time something you built went wrong."
Pick a real incident, say what you owned, and spend most of the answer on what you changed afterwards. Our guide to taking responsibility for a mistake walks through how to structure it.
9. "How much C# do you write day to day?"
Given the director-level feedback above, expect this in some form, and answer honestly. If your main language is Java or Python, say so and show that you've practised the C# idioms the exercises use.
Questions to ask them
- Which language do the coding rounds use, and is another language accepted?
- Do I see the test suite before I start, or only the interface?
- Which team would I join, and what does it own in the product?
A one-week preparation plan
- Days 1–2: Write the MultiMap above from memory, with your own tests, inside 45 minutes. The director-level candidate ran out of time on the extension methods, so speed on the base class buys you time later.
- Day 3: Union, Intersect and Except under two different semantics. Practise asking which one is wanted.
- Day 4: The downloader with a fake, including cancellation and per-URL errors.
- Day 5: Thread safety and complexity: explain both out loud without notes.
- Day 6: One full messenger design, talked through for 45 minutes.
- Day 7: Three true stories for the behavioural questions, plus your "why ServiceTitan" answer.
If your hash table and collection basics are rusty, our data structure interview questions are a quick refresher.
To rehearse the talking parts, Verve AI's Mock Interview has an AI recruiter ask questions one at a time, can generate questions from the job description you give it, and finishes with a scored performance report and feedback.
Sources
- Senior Software Engineer report, Orlando, Dec 2024 (three 90-minute rounds, MultiMap with IEnumerable and Union/Intersect, async parallel downloader with tests, WhatsApp-like design, rejected at design, unhelpful architect): https://www.jointaro.com/interviews/companies/servicetitan/experiences/senior-software-engineer-orlando-florida-december-1-2024-no-offer-negative-0ae6ff3a/
- Engineering Director report, Mar 2025 (HackerRank, MultiMap interface with Flatten(), extension methods, ran out of time, feedback about daily C# experience): https://www.jointaro.com/interviews/companies/servicetitan/experiences/engineering-director-united-states-march-1-2025-no-offer-positive-7385a4c7/
- What ServiceTitan does, the trades it serves, and the founders' story: https://www.servicetitan.com/about-us
- ServiceTitan engineering posting asking for C#/.NET, ASP.NET MVC, Web APIs and SQL databases: https://builtin.com/job/principal-software-engineer/4123332
- Dictionary is a hash table with close to O(1) lookups, keys cannot be null, the indexer throws KeyNotFoundException: https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.dictionary-2
- Lookup maps keys to collections of values, has no public constructor and is immutable: https://learn.microsoft.com/en-us/dotnet/api/system.linq.lookup-2
- Enumerable.Intersect yields distinct elements in the order of the first sequence: https://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.intersect
- ConcurrentDictionary GetOrAdd and AddOrUpdate are not atomic; delegates run outside the internal lock: https://learn.microsoft.com/en-us/dotnet/standard/collections/thread-safe/how-to-add-and-remove-items
- Parallel.ForEachAsync (.NET 6+) runs at most ProcessorCount operations by default and accepts ParallelOptions: https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.parallel.foreachasync
- Verve AI Mock Interview features (AI recruiter, questions from a job description, scored performance report): https://docs.vervecopilot.com/features/mock-interview
Ryan
CEO of Verve AI







