Amazon Paytm Interview Question | Convert array into Zig-Zag fashion

  Рет қаралды 1,999

code io - English

code io - English

2 жыл бұрын

Convert array into Zig-Zag fashion
Given an array Arr (distinct elements) of size N. Rearrange the elements of array in zig-zag fashion. The relative order of elements is same in the output i.e you have to iterate on the original array only.
practice.geeksforgeeks.org/pr...
Follow me on Social Media
Instagram - / g0mathinayagam
Linkedin - / gomathinayagam-avudaik...
Twitter - / g0mathinayagam

Пікірлер: 12
@salonibansal4823
@salonibansal4823 Жыл бұрын
Very nice explaination...kudos to you
@__________________________6910
@__________________________6910 Жыл бұрын
thanks man your explanation is amazing
@subhamthemusicalguy8851
@subhamthemusicalguy8851 2 жыл бұрын
Very nice solution.Thanks
@Ishaosharma
@Ishaosharma 2 жыл бұрын
loved the way u delivered the logic so clear thank u make more like this vdos.
@codeio-english
@codeio-english 2 жыл бұрын
🤩🤩
@sivagiris8175
@sivagiris8175 2 жыл бұрын
Excellent... 🎯💯
@codeio-english
@codeio-english 2 жыл бұрын
😅😅 Thank you so much
@amjathkhan9236
@amjathkhan9236 2 жыл бұрын
Awesome bro🔥...But i got error while changing flag value by using ! in java... So i used flag as boolean type
@codeio-english
@codeio-english 2 жыл бұрын
👍🏻👍🏻 awesome I could have used bool in cpp as well don’t know why I used int 😅
@Fahadpro0123
@Fahadpro0123 2 жыл бұрын
completed bro
@codeio-english
@codeio-english 2 жыл бұрын
Awesome 🤩🤩
@phoenixcreations5797
@phoenixcreations5797 Жыл бұрын
I used the same concept but instead flag I used i%2==0 and i%2!=0
941. Valid Mountain Array | Interview Preparation | English | code io
16:43
Это реально работает?!
00:33
БРУНО
Рет қаралды 2,4 МЛН
No empty
00:35
Mamasoboliha
Рет қаралды 10 МЛН
Triangle - Dynamic Programming made Easy - Leetcode 120
15:06
Convert array into Zig-Zag fashion | GeeksforGeeks
8:53
GeeksforGeeks
Рет қаралды 43 М.
1037. Valid Boomerang | Interview Preparation | English | code io
9:47
Linked list in Java - 72: Rearrange a linked list in zig-zag manner
9:35
Coding Simplified
Рет қаралды 4,2 М.
Why The Windows Phone Failed
24:08
Apple Explained
Рет қаралды 243 М.