+ 1

Binary maximum number

Given a string containing only 0's and 1's and assuming that we can perform left cyclic shift how can we find the permutation that represents the maximum binary number? The most effective way of doing it.

22nd Dec 2020, 1:44 PM
1001pepi
1001pepi - avatar
3 Antworten
+ 3
I'll duckduckgo that for you : https://is.gd/HkX0cb
22nd Dec 2020, 1:49 PM
Alphin K Sajan
Alphin K Sajan - avatar
+ 1
We can only perform left cyclic shits.
22nd Dec 2020, 11:05 PM
1001pepi
1001pepi - avatar
+ 1
An the problem is to find the maximum binary number obtained with all possible strings obtained after multiple cyclic shifts.
22nd Dec 2020, 11:07 PM
1001pepi
1001pepi - avatar