Reverse the middle three digits
input 1,2,3,4,5 and print like 1,4,3,2,5
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.

Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Dharmesh SinghRank #1,207 · 1.5K reputationPosted Jul 21, 2016, 6:33 PM EDT