Merge two sorted lists. Explained with cards. coding interview questions.

  Рет қаралды 449

CodeSmart

CodeSmart

Күн бұрын

In this video, I've demonstrated the algorithm to merge or combine two sorted arrays into a 3rd sorted array. Merging two sorted arrays is an integral part of the merge sort algorithm. This question is also a popular question in coding interviews. The concept of this algorithm can be extended to solve merge K sorted arrays/lists.
I used playing cards to visually explain the algorithm. Hope it helps to understand this algorithmic problem.
algorithm and data structures interview questions
00:00 Intro
01:51 Demonstration of how the algorithm works with playing cards
06:45 Time complexity

Пікірлер: 3
@rashednawab
@rashednawab 2 жыл бұрын
Well explained Vaia. It will be really helpful if we could see how to code at the same time!
@codesmart760
@codesmart760 2 жыл бұрын
Thanks Rashed, I will keep that in mind. I am thinking to add GitHub link in the description, will that work?
@rashednawab
@rashednawab 2 жыл бұрын
@@codesmart760 of course vaia, that will be great !
Dutch National Flag Algorithm. Explained with playing cards.
12:11
Survive 100 Days In Nuclear Bunker, Win $500,000
32:21
MrBeast
Рет қаралды 114 МЛН
Spot The Fake Animal For $10,000
00:40
MrBeast
Рет қаралды 196 МЛН
哈莉奎因以为小丑不爱她了#joker #cosplay #Harriet Quinn
00:22
佐助与鸣人
Рет қаралды 9 МЛН
WORLD'S SHORTEST WOMAN
00:58
Stokes Twins
Рет қаралды 131 МЛН
Stop, Intel’s Already Dead!
13:47
Linus Tech Tips
Рет қаралды 614 М.
How to Shoot the Chosen Card Out of the Deck
10:07
Trap Door Magic®
Рет қаралды 725
Card Prediction that Will Blow Your Mind - The Buddy System
11:29
Trap Door Magic®
Рет қаралды 1,9 М.
Paul Gordon’s Demonic Prodigy from Nocturnal Creations
2:28
2010tenniscoach
Рет қаралды 284
Mystic Disc top version
2:15
stereographer
Рет қаралды 173
Это iPhone 16
0:52
Wylsacom
Рет қаралды 1,2 МЛН
Сколько реально стоит ПК Величайшего?
0:37
Мой новый мега монитор!🤯
1:00
Корнеич
Рет қаралды 2,5 МЛН