← All problemsSign in

Decode IP

Ankur and Prateek are friends. Ankur has completed the Computer Network course and Prateek is improving his problem-solving skill. Prateek gives a String $S$ to Ankur and asked him to decode it and find an IP address (IPv4) of [Class B](https://en.wikipedia.org/wiki/Classful_network) (128 - 191) in binary. Prateek gives a hint that after sorting the given string, the first element of each octet wi

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