Not interview, OA in hackerrank but was asked two easy questions:
Was glad they asked embedded related questions.
1 - bit manipulation qn : switch state represented as 2-bit value. (0,1,2 or 3). Input argument contains a 32bit value input representing state of 16 switches and a desired switch state. find the max consecutive switch state for given switch state if its present in the
███████████████████████████████████
█████████████████████████████████████████
███████████████████████████████████████████████
██████████████████████████████████████████████████
████████████████████████████████████████████████████
██████████████████████████████████████████████████
████████████████████████████████████████████████
█████████████████████████████████████████████
███████████████████████████████████████████
███████████████████████████████████████████
█████████████████████████████████████████████
█████████████████████████████████████████████████
████████████████████████████████
███████████████████████████████████████
█████████████████████████████████████████████
██████████████████████████████████████████████████
████████████████████████████████████████████████████
████████████████████████████████████████████████████
███████████████████████████████████████████████████
████████████████████████████████████████████████
█████████████████████████████████████████████
████████████████████████████████████████████
█████████████████████████████████████████████
████████████████████████████████████████████████
█████████████████████████████
████████████████████████████████████
███████████████████████████████████████████
█████████████████████████████████████████████████
████████████████████████████████████████████████████
██████████████████████████████████████████████████████
█████████████████████████████████████████████████████
███████████████████████████████████████████████████
💬 Discussion (0)
No comments yet. Unlock this question to start the discussion.