← All problemsSign in

Binary Concatenation

CodeChefRating 2240Open on judge ↗

Consider the following function, where `+` denotes string concatenation. ``` function BinaryConcatenation(integer X, integer Y): string binX = binary representation of X without leading zeroes string binY = binary representation of Y without leading zeroes string binXplusY = binX + binY string binYplusX = binY + binX integer XplusY = Convert bin

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start