InterviewLegend

Bit Manipulation & C++ Fundamentals

Alex Chen35 min readGuide updated

Bit manipulation keeps turning up in Rivian's embedded, controls and senior software loops, in four first-hand reports from 2021 to 2026. The newest is from February 2026. A controls candidate had been told the interview would be all Python, then "ended up getting grilled on bit manipulation" in the C++ technical portion and failed part of it. So if your role sits anywhere near the car's hardware, prepare in C++ no matter what the recruiter said.

Two problems have names. A senior engineer's hiring-manager round in February 2025 asked to swap the adjacent bits of a number, and the candidate needed help building the masks. In January 2021 a senior embedded engineer's first question was how to swap bits in a byte, and another embedded loop that month listed bit masking among its topics. Both are worked below in runnable Python, each with a C++ version, followed by the C and C++ questions that come with them.

The Rivian angle
Write it so it compiles clean and passes every test. A 2021 embedded screen required code that "needs to be compiled without warnings" and correct on every test case. In 2025 two candidates were down-leveled after a few failing cases. Use unsigned types for bit work and run the edge values out loud.

RivianPremium lesson · Coding round

The 3 Rivian problems are below.

  1. A Premium questionCoding · Easy · Frequently asked
  2. A Premium questionCoding · Easy
  3. A Premium questionCoding · Medium

Each with hints, the follow-up and a tested solution.

Get the Rivian questions

$49 a year · all 122 companies · instant access

21,000+ candidate reports

Rivian interview guide

Know what Rivian asks before you walk in.

28 coding · 4 system design · 37 behavioral questions

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

Get their questions first.

Had your Rivian interview?How we research

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