Given an array of integers, swap the elements present at even indices with each other. Specifically, swap the element at index 0 with the element at index 2, index 2 with 4, and so on (or swap…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.