Hexadecimal Equivalent
CodeChefOpen on judge ↗
Freya and Allie are two friends who go on challenging each other for writing codes to problems in various ways. Recently, Freya and Allie were taught bit wise operators and number systems, Allie challenged Freya to do swapping of two numbers using the bitwise operators and print the hexadecimal equivalent of the swapped numbers. ###INPUT Any two natural numbers respectively stored as num1 and num
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