Check whether a huge binary string is divisible by 3
Company: Adobe
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: easy
Interview Round: Other
Overview: Decide whether a binary string of up to a billion bits represents a number divisible by 3, without converting it to an integer. It tests modular arithmetic, keeping a running value over a stream of bits, and scanning in constant space.