Check whether n is a bleak number (no x where x plus its set-bit count equals n)
Company: Sap
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Other
Overview: Decide whether a positive integer n is bleak, meaning no positive x makes x plus the number of set bits in x equal to n. Tests reasoning about how large a set-bit count can be and turning that bound into a short, exact search.