Zig Zag Array (spiral order array)

  Рет қаралды 40,926

Vivekanand Khyade - Algorithm Every Day

Vivekanand Khyade - Algorithm Every Day

Күн бұрын

Zig Zag array is an array in which every element is less than and greater than the next element alternatively. Every element is either greater than or less than its neighbours.

Пікірлер: 30
@highschool017
@highschool017 6 жыл бұрын
Vivekanand Ji, u r an extraordinary teacher like your name !! Such simple n clear videos !! Thanx a lot for devoting your precious time for ppl like us !!
@sahilarora1794
@sahilarora1794 5 жыл бұрын
Thanks for Clear explanation! But there are two things which i feel is miswritten or wrongly spoken. 1- it should be a[i] > a[i+1] or less not i< i+1. We need to consider elements not indexes. 2- You talk about flipflop, flipflop never always toggles like this, they are just bistable multi vibrator, it should be instead a T Flipflop which is always given an input of 1. Anyway thnks for this video!!
@ganeshjaggineni4097
@ganeshjaggineni4097 3 ай бұрын
NICE SUPER EXCELLENT MOTIVATED
@jagginadivya3680
@jagginadivya3680 5 жыл бұрын
The way u teaches is nyc
@ayushbhardwaj3296
@ayushbhardwaj3296 4 жыл бұрын
Thanks alot for your videos .
@vishalmahavratayajula9658
@vishalmahavratayajula9658 4 жыл бұрын
Very well explained. Keep it up
@Thepankaz1
@Thepankaz1 5 жыл бұрын
starts at 3:08
@tulu1688
@tulu1688 6 жыл бұрын
Hi, what is the difference between "zig zag" array and "wave form" array?
@gurpreetsodi3948
@gurpreetsodi3948 6 жыл бұрын
nyc algo...keep it up bro
@gyanprakash7680
@gyanprakash7680 6 жыл бұрын
nice sir its too good !
@ArjunKalidas
@ArjunKalidas 5 жыл бұрын
Thank you very much for this video Vivekanand. Can you please post a video explaining the problem "find longest non-repeating subsequence in a string"? Thank you in advance.
@srinithib5764
@srinithib5764 4 жыл бұрын
Thank you so much sir
@abhrakar3967
@abhrakar3967 7 жыл бұрын
Very good, Sir.
@JohnWick-zc5li
@JohnWick-zc5li 6 жыл бұрын
very awasome-- pls code as well how about 2=2?
@deepakbhargav7434
@deepakbhargav7434 4 жыл бұрын
Thank you
@karankhanna9643
@karankhanna9643 5 жыл бұрын
Why zig zag array is important
@yashpreetbathla4653
@yashpreetbathla4653 4 жыл бұрын
Thank you sir :)
@deepakbhargav7434
@deepakbhargav7434 4 жыл бұрын
What is O(n)
@sarvodaykumar2723
@sarvodaykumar2723 4 жыл бұрын
Sort the array and swap a[i+1] = a[i+2] will this solve this problem
@sandeepvedavyas8701
@sandeepvedavyas8701 4 жыл бұрын
sorting takes o(nlogn) but this algorithm takes o(n)
@ibrahimshaikh3642
@ibrahimshaikh3642 4 жыл бұрын
Nice
@ruchirsingh3635
@ruchirsingh3635 7 жыл бұрын
and also make a video on fenwik tree or index binary tree
@tejaswiniravva795
@tejaswiniravva795 5 жыл бұрын
Why u shouldn't provide the whole code With execution..??.. Explanation is gud but people need code for better understanding..
@ruchirsingh3635
@ruchirsingh3635 7 жыл бұрын
sir make a video on segment tree
@kajalkansal2799
@kajalkansal2799 6 жыл бұрын
Need video on longest oscillating subsequence
@karan6551
@karan6551 3 жыл бұрын
❤️❤️❤️❤️❤️
@SansaniKhabarlive
@SansaniKhabarlive 3 жыл бұрын
code bata do kisi ke paas ho to please
@xof8256
@xof8256 5 жыл бұрын
Thank You
Find the number which occurs odd number of times in an Array
7:31
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 31 М.
Sort an Array in WAVE form
12:19
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 9 М.
Players vs Corner Flags 🤯
00:28
LE FOOT EN VIDÉO
Рет қаралды 84 МЛН
Do you choose Inside Out 2 or The Amazing World of Gumball? 🤔
00:19
The Joker wanted to stand at the front, but unexpectedly was beaten up by Officer Rabbit
00:12
Spiral (zig-zag) level order traversal of a binary tree
14:12
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 34 М.
Equilibrium Element in Array in  o(n) time complexity ( Interview Question for FAANG companies)
13:57
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 8 М.
Leaders in an Array | Brute - Optimal | Strivers A2Z DSA Course
11:53
take U forward
Рет қаралды 136 М.
A* (A Star) Search Algorithm - Computerphile
14:04
Computerphile
Рет қаралды 1,1 МЛН
Print Matrix Diagonally (Diagonal order)
13:22
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 110 М.
Segregate 0's, 1's and  2's together in an array[O(n)](Dutch National Flag Problem)
17:27
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 61 М.
Maximum Sum SubArray (Kadane's algorithm) (Largest Sum Contigous SubArray)
17:30
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 92 М.
Pairs with given sum in an array (code/Algorithm)
7:11
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 60 М.
Remove Duplicates from sorted Array
21:22
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 171 М.
Print Matrix in spiral form ( 2-D array)
17:25
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 124 М.