Showing 3 questions
Given a base 10 integer, find its complement. The complement is found by inverting the bits of its binary representation.
#1. Complement of Base 10 Integer
Given a positive integer, you need to find its complement number. The complement strategy is to flip the bits of its binary representation.
#2. Number Complement
You're given two strings and a mapping of equivalent characters. Find the lexicographically smallest string that is equivalent to the first string based on the given mappings.
#3. Lexicographically Smallest Equivalent String