← 返回 microsoft 的题目列表Count Unique Decimal Numbers from Binary String
类型:online_judge
Given a binary string, find all possible unique combinations, convert them to decimal numbers, and return the count of numbers that can be generated. For example, for the string '010', possible combinations are 0, 1, 2.
Example
Input
010