Swap Alternate with easy concept. #java

preview_player
Показать описание
LIFE CODING WITH JAVA
Swap Alternate
Send Feedback
You have been given an array/list(ARR) of size N. You need to swap every pair of alternate elements in the array/list.
You don't need to print or return anything, just change in the input array itself.
Sample Input 1:
1
6
9 3 6 12 4 32
Sample Output 1 :
3 9 12 6 32 4
I try to solve very easy concept So please watch this video .
All java code with easy trick.
By "LIFE CODING WITH JAVA". all program free no any cost So please like ,subscribe, share and comment.
If you any doubt related to any video then comment me. As soon as i will help you .
my contact number: 6206472735
Рекомендации по теме
Комментарии
Автор

bro pseudo code write krte samay aap jo box lete ho, vo visible nhi hota, plz incr text font and bold it.

swapnilsonwane
Автор

what if we have odd no of element in array . when i am trying with odd it is throwing some garbage value ?? is it not valid or it has any solution

unknownl