Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 2864. Maximum Odd Binary Number
Rearrange the bits of a binary string (which contains at least one '1') to form the largest possible odd binary number; since oddness requires the last bit to be '1', reserve one '1' for the end and maximize the prefix by placing the remaining '1's in the most significant positions.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.