InterviewLegend

More CodeSignal Builds: Files, Tasks & Recipes

Alex Chen50 min readGuide updated
In this lesson
  • Build the task manager with quotas, time-windowed assignments and overdue reports
  • Build the recipe manager with case-insensitive names and version rollback
  • Build file storage with search, user capacity and compression

The Ramp OA keeps its format and rotates its domain. You get one CodeSignal problem in about four levels and roughly 90 minutes, and each level stays locked until the tests below it pass. The CodeSignal OA lesson covers the format and the two builds with the most reports, banking and the in-memory database. This lesson takes the rest of the 2026 domains.

They run newest first. The task manager and the recipe manager both come from early 2026 OAs. File storage has been asked the longest, from 2024 into early 2026, and it's the one to do if you only have time for one.

The Ramp angle
The domain changes and the class doesn't. Every build here is dicts keyed by id, a sort with a tie-break, and one rule about time or ownership. Practice the shape on two or three of them and an unfamiliar domain on test day costs you a few minutes of reading.

The 2026 domains at a glance

  • Task manager: Jan to Mar 2026. Create and delete tasks, assign them to users, then clean up the expired ones.
  • Recipe manager: Early 2026. CRUD, search, users who edit, then version control.
  • File storage: 2024 to early 2026. Upload, get and copy, then search, user capacity, compression or locks.

Read the level splits as the shape of each prompt. Candidates remember which features arrived and in roughly what order, and the exact method names and return values vary. Each class below fixes one version so the tests can run. On the real test, read the spec on screen and follow it over anything here.

Working a level you have never seen

Each level adds one idea. In the builds below, level two is a search or a ranking, so the work is a filter and a sort key you get right the first time, ties included. The third brings in users, usually with a limit such as a quota or a storage capacity. Level four changes records after the fact, with overdue reports, rollback or compression.

So pick level-one structures the later levels can grow into. Keep a creation number on every record, because the tie-break in level two usually needs it. Route every write through one private method, because level four's history hooks in there. And keep the owner on the record itself. Then a capacity check is one lookup instead of a scan.

Get the sort keys exactly right. Priority descending, then creation order. Size descending, then name. Ingredient count, then creation order, so recipe2 comes before recipe10. Write the key as a tuple and compare numbers as numbers, since sorting the id strings puts recipe10 first.

Asked at Ramp

The task management system

A New York candidate in March 2026 was asked to build a task management system in four parts, with new requirements added each time. Part one just creates and deletes tasks. Part two adds users you can assign tasks to, and part three cleans up expired tasks on its own.

Other early 2026 candidates describe a 90-minute OA with filesystem design and task management API challenges. A common version runs four levels. Level one adds, updates and gets tasks, level two searches and sorts by priority, and level three gives users quotas and assignments that run from a start time until just before a finish time. Level four completes tasks and reports the overdue ones. The class below builds that version.

1

Task Management System With Quotas and Overdue Reports

MediumCommonly asked
Problem
Build a TaskManager. Every method takes a timestamp first, and timestamps never go down. Level 1. add_task(timestamp, name, priority) returns a new id, "task1", "task2" and so on. update_task(timestamp, task_id, name, priority) and delete_task(timestamp, task_id) return false for an unknown id. get_task(timestamp, task_id) returns a string like "fix bug(5)", or null.

Level 2. search_tasks(timestamp, name_filter, max_results) returns the ids of tasks whose name contains name_filter (case-sensitive), up to max_results. list_tasks_sorted(timestamp, limit) returns up to limit ids from all tasks. Both rank by priority, highest first, then by creation order. A count of 0 or less gives an empty list.

Level 3. add_user(timestamp, user_id, quota) returns false if the user exists. assign_task(timestamp, task_id, user_id, finish_time) makes an assignment that is active from timestamp until just before finish_time. It fails if the task or user is unknown or if finish_time is not after timestamp. It also fails if someone holds the task right now, or if the user already holds quota active tasks.

get_user_tasks(timestamp, user_id) returns the user's active task ids in the order they were assigned.

Level 4. complete_task(timestamp, task_id, user_id) needs an active assignment of that task to that user, and frees the quota slot at once. An assignment whose finish time passes without completion stops being active on its own. get_overdue_assignments(timestamp, user_id) returns those task ids, in assignment order. Deleting a task removes its assignments.
  1. TaskManager()
  2. add_task(1, "deploy api", 3)→ "task1"
  3. add_task(2, "deploy web", 5)→ "task2"
  4. add_task(3, "review", 5)→ "task3"
  5. search_tasks(4, "deploy", 5)→ ["task2","task1"]
  6. list_tasks_sorted(5, 10)→ ["task2","task3","task1"]

task2 and task3 tie on priority 5, so creation order puts task2 first.

How this uses the pattern

Tasks go in a dict of id to [name, priority, creation number]. Assignments go in a list of [task_id, user_id, finish_time, completed]. An assignment is active when it is not completed and the timestamp is before its finish time.

Write it here, or go full screen with the problem, hints and solution beside the editor.

Task Management System With Quotas and Overdue Reports

Loading...
Click "Run" to execute your code
The Ramp angle
The March 2026 candidate's third part was cleaning up expired tasks automatically. The cheapest way to pass it is to never store "active" as a field at all. Compute it from the finish time on every read, and expiry happens by itself with no timer and no cleanup sweep. The level-four overdue report is then the same list read the other way. If the spec is silent on something, such as whether a task can be assigned twice, put your assumption in a comment.
Take it further
Repeat assignments. The spec on screen may not say what happens when a task is assigned again after it expires or is completed. The class below allows it and keeps the old assignment, so the old one can still show as overdue. If the spec says one assignment per task, replace the list with a dict from task id to its single assignment and overwrite it. Either way, write the rule in a comment, since the hidden tests pick one.

The recipe manager

A full-time candidate interviewing between January and March 2026 described the OA as a multi-level recipe manager with CRUD, search, users and version control. In the usual version, names are unique ignoring case. Level two searches by ingredient and sorts, level three lets users edit, and level four keeps a numbered history you can roll back.

The history level is a small cousin of LeetCode 981, Time Based Key-Value Store, with version numbers in place of timestamps. The twist is that a rollback restores an old version as a new entry, so the history never gets rewritten.

2

Recipe Manager With Version History

MediumCommonly asked
Problem
Build a RecipeManager. Names are unique ignoring case, so "Soup" and "SOUP" clash. Level 1. add_recipe(name, ingredients) returns a new id, "recipe1", "recipe2" and so on. It returns null if the name is taken. get_recipe(recipe_id) returns a string like "Soup(water,salt)", or null. update_recipe(recipe_id, name, ingredients) and delete_recipe(recipe_id) return false for an unknown id, and an update fails if another recipe has the name.

Level 2. search_by_ingredient(ingredient) returns the ids of recipes that list it, ignoring case. The fewest ingredients come first, then creation order. list_recipes(sort_by) returns every id sorted by name ignoring case when sort_by is "name", or by ingredient count when it is "ingredients". Ties go by creation order, and any other key falls back to name.

Level 3. add_user(user_id) returns false for a duplicate. edit_recipe(user_id, recipe_id, name, ingredients) works like an update and fails for an unknown user, an unknown recipe or a name clash.

Level 4. A recipe has no history until its first successful update or edit. Each one appends a version holding the new contents and its editor. The editor is the user id, or "system" for an update. get_versions(recipe_id) returns strings like "v1(ana)". rollback_recipe(recipe_id, version) restores that version's contents as a new version by "rollback", and fails for a missing recipe or version or a name clash.
  1. RecipeManager()
  2. add_recipe("Pancakes", ["flour", "eggs", "milk"])→ "recipe1"
  3. add_recipe("pancakes", ["flour"])
  4. update_recipe("recipe1", "PANCAKES", ["flour", "eggs"])→ true
  5. get_recipe("recipe1")→ "PANCAKES(flour,eggs)"

The second add clashes with Pancakes ignoring case. Renaming a recipe to its own name in new capitals is allowed.

How this uses the pattern

Keep recipes in a dict of id to [name, ingredients, creation number] and a second dict from the lowercased name to the id. Send every update, edit and rollback through one private write method.

Write it here, or go full screen with the problem, hints and solution beside the editor.

Recipe Manager With Version History

Loading...
Click "Run" to execute your code
The Ramp angle
Two choices at level one pay off at level four. A lowercased-name index turns every uniqueness check into a dict lookup. And a single private write method makes version history one extra line, because every change already passes through it. Write update and edit as separate methods and you'll add the history call twice, and likely forget it in one of them.
Take it further
Rollback that clashes. Between saving a version and rolling back to it, another recipe can take that version's name. The rollback must fail then, and it does with no extra code when rollback calls the same write method that checks the name index. A second case worth a test is deleting a recipe, which should drop its history, so a new recipe that reuses the name starts clean.

The file storage system

File storage has the longest record of these three builds, from March 2024 to early 2026. The newest is the early 2026 OA with filesystem design in 90 minutes, mentioned above. A March 2024 candidate laid out level one as three commands, FILE_UPLOAD, FILE_GET and FILE_COPY, and said a level opened only after the one before it was cleared.

The later levels vary across 2024 and 2025. One 2025 version adds search by prefix and suffix, then users with storage limits, then compression. An August 2024 intern got locks and keys for security instead, and a February 2025 candidate called the time tight. The class below takes that version's levels and returns false or null on bad input instead of raising errors. It is close kin to LeetCode 588, Design In-Memory File System.

3

File Storage With Search, Capacity and Compression

MediumCommonly asked
Problem
Build a FileStorage that maps full paths like "/docs/a.txt" to sizes. Level 1. file_upload(name, size) returns false if the name exists. file_get(name) returns the size, or null. file_copy(source, dest) returns false for a missing source, overwrites dest if it exists, and returns true. Copying a file onto itself changes nothing and returns true. Files from file_upload belong to an admin with no limit.

Level 2. find_by_prefix(prefix) and find_by_suffix(suffix) return matching files as strings like "/docs/a.txt(100)", largest first, ties by name.

Level 3. add_user(user_id, capacity) returns false for a duplicate. file_upload_as(user_id, name, size) returns the bytes the user has left, or null for an unknown user, a taken name or a file that won't fit. A copy belongs to the source's owner and counts against their capacity. If it won't fit, file_copy returns false. Overwriting a file gives its bytes back to its owner.

Level 4. compress_file(user_id, name) replaces a file the user owns with name + ".z" at half the size, rounded down, and returns the bytes left. It returns null for a file the user doesn't own, a name already ending in .z, or a taken .z name. decompress_file(user_id, name) reverses it. It returns null if the user doesn't own the file, if it isn't a .z file made by compression, if the original name is taken, or if the full size won't fit.
  1. FileStorage()
  2. file_upload("/docs/a.txt", 100)→ true
  3. file_upload("/docs/a.txt", 50)→ false
  4. file_copy("/docs/a.txt", "/backup/a.txt")→ true
  5. file_get("/backup/a.txt")→ 100
  6. file_get("/docs/b.txt")

The second upload uses a taken name, so it returns false.

How this uses the pattern

Store each file as [size, owner, original_size], with owner None for the admin and original_size set only on a compressed file. Users are [capacity, used], so a capacity check is one subtraction.

Write it here, or go full screen with the problem, hints and solution beside the editor.

File Storage With Search, Capacity and Compression

Loading...
Click "Run" to execute your code
The Ramp angle
Level one looks trivial, but settle the copy rule before you write file_copy. Copying onto a name that exists either overwrites it or fails, and only the spec on screen tells you which. This class overwrites. Then keep the owner on the file record from the start. Level three charges a copy to the source's owner and refunds an overwritten file to its owner, and both are one lookup once the record carries its owner.
Take it further
Locks and keys. The August 2024 intern's later levels added locks and keys for security in place of compression. One way to model it is a dict from file name to the key that locks it. Every read, copy and write on a locked file then checks the caller's key before it touches anything. Unlocking with the right key deletes the entry. Run the lock check before the capacity check, so a locked file never changes anyone's usage.

How to practice these builds

Do the task manager and file storage first, from a blank file on a 90-minute timer, one level at a time, running every test after each level. Then do the recipe manager on a shorter clock and see whether the write-path habit comes without thinking.

Common questions

What are the Ramp CodeSignal questions in 2026?

Ramp's 2026 OA is one progressive build. The domains named in 2026 reports are an in-memory database, a banking system, a task manager, a recipe manager, a file system and, in October, container operations. Candidates in early 2026 described a new version of the test, so expect new domains. The shape stays the same, one class with about four levels of rules.

Are the Ramp CodeSignal builds LeetCode problems?

No build here matches a LeetCode problem exactly. A few come close in parts. File storage is near LeetCode 588, Design In-Memory File System, and recipe version history resembles LeetCode 981, Time Based Key-Value Store. The OA tests clean class design under a clock more than any single algorithm.

Key Takeaways

  • ✓After banking and the database, the task manager, recipe manager and file storage are the 2026 domains to practice.
  • ✓Give every record a creation number and its owner at level one, so later sorts and limits stay one-line changes.
  • ✓Route every write through one private method, so version history or usage tracking hooks in at one place.
Ramp interview guide

Know what Ramp asks before you walk in.

29 coding · 3 system design · 18 behavioral questions

Get Premium$49 a year · Instant access
Or start freeNo card.

Get their questions first.

The CodeSignal OAHad your Ramp interview?How we research

InterviewLegend is independent and not affiliated with or endorsed by any company it covers.