← Samsung questions

Swap Nibbles in a Byte

Filed under Samsung · Also reported at Brocade Communications, Oracle

AI-generated: Given an 8-bit unsigned integer (a byte), swap its two nibbles. A nibble consists of 4 bits. For example, the input 100 (01100100 in binary) should result in 70 (01000110 in binary).

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Samsung questions

Collected from public candidate posts and coding forums. Updated Nov 2026.