InterviewLegend

The Samsara Online Assessment

Alex Chen35 min readGuide updated
In this lesson
  • Know who gets a Samsara OA and which platform each pipeline uses
  • Prepare for the intern CoderPad set and its one-minute Go and Python questions
  • Build an event emitter with on, once and off that follows Node rules
  • Validate a completed Sudoku and rotate a matrix by any number of quarter turns

Whether you get an online assessment at Samsara depends on your pipeline. Intern candidates nearly always start with one, and so do some full-stack candidates in India and Canada. Experienced engineers in the US usually don't. Their loops from late 2025 into 2026 open with a recruiter call and then a technical phone screen of 45 minutes to an hour, with no test in front.

The platform depends on the pipeline too. Interns since 2025 describe CoderPad. A December 2025 full-stack OA in Bengaluru ran on HackerRank, and a September 2025 one in the same city used CodeSignal. So any page that names one vendor as the Samsara OA is guessing. Three problems from Samsara assessments are worked in full further down, after the formats and the language questions that close the intern test.

The Samsara angle
Samsara grades working code first. A February 2025 intern said the technical round after the OA cared about correct, matching output more than the most optimal answer. The OA questions are short and each runs on its own timer, so the same habit applies there. Get a clean, tested answer in, then speed it up if time is left.

Who gets the Samsara OA

Interns. London in January 2026, the US in October 2025 and San Francisco in February 2025 all opened with an OA. The usual intern sequence after it is a recruiter call, one technical interview and a hiring-manager round. A Bengaluru intern in July 2025 also started with an OA, three questions running from easy to medium-hard.

Some full-stack pipelines outside the US. Bengaluru full-stack candidates took an OA in September and December 2025. A full-stack candidate in Canada in September 2026 got a HackerRank-style coding question before the HR call, then a one-on-one coding interview.

Most experienced US engineers skip it. The US software loops reported from November 2025 to March 2026 don't mention one. They go from the recruiter straight to the technical phone screen, which the process overview walks through. It isn't a rule, though. A US software engineer in February 2025 got an OA with Go and Python trivia, so if a link arrives, the formats below are the ones candidates have seen.

Samsara OA format in 2025 and 2026

  • Interns: CoderPad, timed. Four or five short LeetCode-style questions, each with its own timer, then Python and Go concept questions at about a minute each (US, October 2025). London in January 2026 described the same shape.
  • India full stack, Dec 2025: HackerRank, four tasks. One task per language: Java with Map and Set, a Node.js event emitter, a Python average and sum, and a React task with GitHub Copilot allowed in the IDE.
  • India full stack, Sep 2025: CodeSignal, one hour. Two LeetCode questions, one easy and one medium-hard.
  • Canada full stack, Sep 2026: HackerRank-style. A single coding question, then an HR call and a one-on-one coding interview.

The Samsara SWE intern OA

The intern test is short questions against the clock. A San Francisco intern in February 2025 noted that CoderPad gave each question its own timing, so you can't bank minutes from an easy one for a hard one. The US intern in October 2025 counted four or five questions, all LeetCode-style data structures and algorithms. A US intern in April 2025 had a one-hour OA of easy to medium problems.

The level is gentle. A US software engineer who took a Samsara OA in February 2025 called the coding part LeetCode easy and medium, "which were very easy." The annoying part was the language trivia, and most people don't prepare for it.

The Go and Python concept questions

After the coding comes a run of quick concept questions on Python and Go, about a minute each. That February 2025 candidate quoted two of the Go ones. How are arrays implemented in Go? Is an array's length part of its type?

Both have short answers. A Go array is a fixed run of elements stored side by side, and its length is part of the type, so [3]int and [4]int are different types. Arrays are values, which means assigning one or passing it to a function copies every element. Slices are what Go code passes around. A slice is a small header holding a pointer into an array, a length and a capacity, so copying it shares the elements underneath.

Nobody has quoted the Python questions. With a minute each, they favor knowing the basics cold, so spend an evening on whichever of the two languages you use less.

The full-stack HackerRank OA

The December 2025 Bengaluru full-stack OA was four tasks in four languages. One was Java with a Map and a Set, one a Node.js event emitter, one a Python average and sum, and one a React task. It tests range across a stack more than algorithm depth, so the event emitter below is the task worth rehearsing.

GitHub Copilot was allowed inside the HackerRank IDE for the React task. That's the only Samsara OA on record where AI help was allowed, and Samsara publishes no candidate rule on AI either way. Ask your recruiter before you assume anything.

What Samsara OA questions look like

Samsara OA questions are short. The intern sets are LeetCode easy to medium, each on its own timer, and the full-stack set asks for one small task per language. Few candidates name their problems, which is normal for short timed tests. The newest named one comes first, then two older ones that still teach the shape.

Each problem below has tests you can run. Give yourself about 20 minutes per problem, and write two cases of your own before you open the hints.

A Node.js event emitter

This one comes from the December 2025 Bengaluru HackerRank OA, where the Node.js task was an event emitter. The candidate didn't share the exact spec, so the version below is something like the usual shape, with on, once, off and emit following the rules of Node's own EventEmitter. Since the real task was in Node, write it again in JavaScript once your Python passes.

1

Event Emitter With On, Once and Off

EasyCommonly asked
Problem
Build an EventEmitter. Listeners are identified by name strings, and emit returns the names it would call instead of running any code.

on(event, listener) adds listener to the end of the list for event. once(event, listener) does the same, but that registration is removed the first time the event fires. The same listener may be added more than once, and each registration fires on its own.

off(event, listener) removes one registration of listener for event: the most recently added one, whether it came from on or once. With no match it does nothing.

emit(event) returns the names of the listeners it calls, in the order they were added, or an empty list when there are none. listeners(event) returns the names currently registered for event, in order.
  1. EventEmitter()
  2. on("save", "log")
  3. on("save", "sync")
  4. emit("save")→ ["log","sync"]

Both listeners fire, in the order they were added.

How this uses the pattern

Keep a dict from each event to a list of [listener, fires_once] pairs. A list keeps insertion order, which is exactly the order emit has to return.

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

Event Emitter With On, Once and Off

Loading...
Click "Run" to execute your code
The Samsara angle
Samsara put this inside a four-task, four-language OA for full-stack engineers, so it checks that you know Node's event model more than any algorithm. Two rules catch people. off removes one registration, the newest, and leaves any copies alone. And a once entry must go after it fires while an on entry for the same name stays. Get those right, keep the list order, and the rest is bookkeeping. With three other languages waiting in the same sitting, write the short plain version and move on.
Take it further
Arguments, and changes during emit. In real Node, emit(event, ...args) calls each function with the arguments and returns true if any listener ran. A listener may also call on or off for the same event while emit is looping. Node copies the list before it loops, so those changes only apply from the next emit, and the solution below does the same. Rewrite it in JavaScript with real functions and check both rules.

Older problems (2023-2025)

These two come from earlier assessments, so treat them as practice for the shape. Valid Sudoku is from 2025, before the newest intern sets. The matrix moves are from the 2023 CodeSignal tests.

Validate a completed Sudoku

The one named problem from the CoderPad intern sets. A US intern's OA in October 2025 asked something like "given a complete Sudoku, return True if the Sudoku is valid." The same check showed up in live rounds in 2025, for an intern in Poland in April and a US new grad in February, and it's on a December 2026 list of Samsara-tagged problems. It's close to LeetCode 36, except the board is already full.

2

Validate a Completed Sudoku

EasyCommonly asked
Problem
You get a completed 9 by 9 Sudoku board as a list of nine rows. Every cell holds an integer.

Return True if the board is a solved Sudoku: every row, every column and each of the nine 3 by 3 boxes holds the digits 1 to 9 exactly once. Otherwise return False.

A value outside 1 to 9, such as a 0 left in an unfinished board, makes the board invalid.
Inputboard = [[5,3,4,6,7,8,9,1,2],[6,7,2,1,9,5,3,4,8],[1,9,8,3,4,2,5,6,7],[8,5,9,7,6,1,4,2,3],[4,2,6,8,5,3,7,9,1],[7,1,3,9,2,4,8,5,6],[9,6,1,5,3,7,2,8,4],[2,8,7,4,1,9,6,3,5],[3,4,5,2,8,6,1,7,9]]OutputTrue

Every row, column and box holds 1 to 9 once.

How this uses the pattern

Keep nine seen sets for rows, nine for columns and nine for boxes. The box for a cell is (row // 3) * 3 + column // 3.

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

Validate a Completed Sudoku

Loading...
Click "Run" to execute your code
The Samsara angle
In the October 2025 OA this was one of four or five timed questions, so speed counts as much as being right. A full board makes it easier than LeetCode 36, since there are no blanks to skip. It also adds a check the blank version never needs, a value outside 1 to 9. A board with a 0 in it may have no duplicates and still not be solved. One pass with three groups of seen sets covers it all in a few minutes.
Take it further
Unfinished boards. The LeetCode version gives a partly filled board and asks only whether the filled cells break a rule. Skip the empty cells and keep everything else, as worked below. The Poland intern in 2025 described the task as checking completion, so on a live round ask whether a full board is guaranteed before you add the range check.

Rotate or move matrix elements by rules

Three CodeSignal reports from 2023 describe matrix questions that move values by a rule. In February 2023 one candidate's was "about rotating around the center of a matrix," and a machine learning intern that month had an implementation-heavy one about "traveling matrix elements in a certain way." A London new grad in September 2023 described "moving values around according to some rules." None gave the full spec, so the problem below is something like the part all three share: move every value to a new cell by a fixed rule. It's close to LeetCode 48, but with any shape and any number of turns.

3

Rotate a Matrix by Quarter Turns

MediumRarely asked
Problem
You get a matrix of integers with m rows and n columns, and an integer turns.

Rotate the matrix by turns quarter turns, clockwise when turns is positive and counterclockwise when it's negative. Return the result as a new matrix. After an odd number of turns it has n rows and m columns.

Constraints: 1 <= m, n <= 100, and turns can be any integer, including 0 and values far past 4.
Inputmatrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]turns = 1Output[[7, 4, 1], [8, 5, 2], [9, 6, 3]]

One clockwise turn. The first column, read bottom to top, becomes the first row.

How this uses the pattern

Reduce turns modulo 4 so it lands in 0 to 3. One clockwise turn sends the cell at (row, column) to (column, rows - 1 - row) in a matrix with the height and width swapped.

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

Rotate a Matrix by Quarter Turns

Loading...
Click "Run" to execute your code
The Samsara angle
CodeSignal's later questions in that era were implementation-heavy, and matrix moves were a common kind. Hidden tests do the scoring, so the risk sits in the edges more than the idea. Rectangles swap their height and width. A negative turn count needs a modulo that stays non-negative, which Python gives you and Java, C++ and JavaScript don't. And a huge count should cost no more than three turns. Write the mapping for one clockwise turn, check it by hand on a 2 by 3 case, and reuse it.
Take it further
Rotate each ring by one step. "Rotating around the center" fits another rule too. Every value moves one cell clockwise along its own ring, and a center cell stays put. Walk each ring's cells in clockwise order, shift that list of values by one and write them back, as worked below. On a timed test, check the examples to learn which rule you have.

The CodeSignal era and what changed since 2023

From 2020 through 2023 the Samsara OA was usually a CodeSignal test. Twenty-one candidate reports from September 2020 to September 2025 describe it, and the shape held steady. You got four questions in about 70 minutes, with 90 minutes or two hours in some years, and they got harder as you went. The first ones were quick array and string edits. The later ones were implementation-heavy, often on a matrix, and the last needed an optimized answer. A September 2023 new grad compared it to running Two Sum for every value from 1 to N.

The score mattered. A San Francisco intern in November 2023 thought a pass took about 500 of 600. Invites came with a deadline, a week in two 2023 reports. After that the format faded. A Poland candidate in May 2024 and a Bengaluru full-stack candidate in September 2025 are the latest CodeSignal accounts, and the intern OA moved to CoderPad in 2025. Any write-up that promises four CodeSignal questions is describing this era.

How to prepare for the Samsara OA

Prepare for the format you were sent. For the intern CoderPad set, drill short easy and medium problems on a tight timer, one at a time, since each question has its own clock. Arrays, strings, dicts, heaps and grids cover what candidates have described. Then spend an hour on Go and Python basics: arrays and slices in Go, and lists, dicts and copying in Python.

For the full-stack HackerRank OA, warm up in every language the posting lists. Write a small Java task with a Map and a Set, the event emitter above in Node, and a React component from scratch. Switching languages under time pressure is the hard part, so practice the switch itself.

Pass the OA and the next stop is a person. Interns go to a recruiter call and one technical interview, and that interview is often a Markdown to HTML converter built in parts. It's a different skill from the OA, so start on it before your OA result comes back.

Common questions

Does every Samsara candidate take an OA?

No. Interns and some full-stack candidates in India and Canada do. Experienced US engineers usually start with a recruiter call and a technical phone screen instead, though a few still get one.

Is the Samsara OA on CodeSignal, HackerRank or CoderPad?

All three have been used. Interns since 2025 describe CoderPad, a December 2025 full-stack OA in India ran on HackerRank, and CodeSignal was the usual platform from 2020 to 2023, with one India full-stack sitting as late as September 2025. Your invite names the one you'll get.

What's on the Samsara SWE intern OA?

Four or five short LeetCode-style questions, each on its own timer, then quick Python and Go concept questions at about a minute each. Valid Sudoku, from an October 2025 sitting, is the one problem a candidate named.

Can I use AI on the Samsara OA?

Samsara publishes no candidate rule. One December 2025 HackerRank OA allowed GitHub Copilot for its React task. Nothing says AI is allowed anywhere else, so ask your recruiter.

What comes after the Samsara OA?

For interns, a recruiter call, one technical interview and then a hiring-manager round. The technical interview is often a practical build like the Markdown converter, judged on correct output more than on the most optimal answer.

Key Takeaways

  • ✓Interns and some India and Canada full-stack candidates get an OA. Experienced US engineers usually go straight to a recruiter and phone screen.
  • ✓The 2025 to 2026 intern OA is a timed CoderPad set, then Python and Go concept questions at about a minute each.
  • ✓For the event emitter, keep an ordered list per event. off removes the newest match, and once entries drop after firing.
  • ✓Validate a full Sudoku in one pass with seen sets per row, column and box, and reject values outside 1 to 9.
Samsara interview guide

Know what Samsara asks before you walk in.

25 coding · 4 system design · 11 behavioral questions

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

Get their questions first.

What Samsara Tests in CodingHad your Samsara interview?How we research

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