Maximum Binary String
CodeChefOpen on judge ↗
Given a string of arbitrary characters which can contain numbers, write a program to print the longest binary sub-string having no leading zero(s), no space(s), and the maximum numeric value. ###Input: First line will take number of test cases(T) Second line will take the string(S) ###Output: One line consisting of the maximum binary number ###Constraints - $0 \le T \leq 1000$ -
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start