Given an array of integers, write a function to determine if all even numbers in the array can be rearranged or accommodated such that they reside at even indices (0, 2, 4, etc.). Print 'Yes' or 'No'.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.