Showing 3 of 5 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
Determine the minimum capacity needed for a ship to transport packages within a given number of days. You're given the weights of the packages and must find the smallest capacity that allows shipping all packages within the day limit.
#3. Capacity To Ship Packages Within D Days
Page 1 of 1 · 5 total