Insertion Sort | C Programming Example

preview_player
Показать описание


Рекомендации по теме
Комментарии
Автор

After looking through many tutorials, both videos and articles, i can safely say that this is the best one. This helped me more than the school books, and i was able to really understand what's happening. Just know you saved me i have a test tomorrow hahah
Thanks man keep up the great work!

xqxlidg
Автор

you are so underrated man. Thank you so much, I really appreciate your work and time

plutomessi
Автор

your videos are just amazing, i am able to understand the concepts very well, please do not stop making videos like these .

mandeepkumar
Автор

Best channel for learning, straight to the point.

AnonElyes
Автор

fantastic and clear explaination. thank you!

jaspersong
Автор

OH MY GOD, thank you so much! I was struggling to understand why people started the int i at 1.

Smarxo
Автор

very clear way of explanation. extremely helpful.

ramankr
Автор

Thanks for you work, it is very helpfull

temirbek
Автор

Great video, thank you so much! I took so many notes!

Jordan-tvwe
Автор

Thank you for all efforts :) keep going.
Q: why we don't use temp in while when we replace values.

عبداللهابراهيم-خلح
Автор

Is it the same concept when you try to sort 2D arrays?

I have grasped the concept of sorting in 1D arrays. Idk with 2D arrays tho.

marbles
Автор

Hello thank you again for another great explanation, im curious;
i tried coming up with a solution before watchign the explanation and here is what i got:
int i, j, temp;
for(i = 0; i < length - 1; i++){
for(j = i + 1; j > 0; j--){
if(arr[j] > arr[j - 1]){
break;
} else if(arr[j] < arr[j - 1]){
temp = arr[j];
arr[j] = arr[j - 1];
arr[j - 1] = temp;
}
}
}

would this still be considered insertion but with a different algo? or would it be something else?
thank you in advance!

oaly
Автор

Can you please make a video on sorting a doubly linked list of integers using insertion sort?

ouvertn
Автор

why is it not working when I use a[i] directly instead of using the variable " key " ? can somebody help me please

NIRMALP-msmu
Автор

Can any body explain why he wrote j=j-1 inside while

raviuluvana
join shbcf.ru