#3309

Maximum Possible Number by Binary Concatenation

specialist · 635 · lc medium +30 · 65.5% accepted · 115 likes · top 70%

Description

You are given integer array nums of size 3. Arrange all three numbers in any order and concatenate their binary representations (no leading zeros). Return the maximum integer achievable over all orderings.

Code

1
2
3