Sorting Visualizer with Sound (JavaScript Tutorial)

Sorting Visualizer with Sound (JavaScript Tutorial)

Radu Mariescu-Istodor

1 год назад

25,303 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@Radu
@Radu - 29.09.2022 10:29

Check out the 3 visualizers and their source code on my website :-)

Ответить
@vishalchouhan4696
@vishalchouhan4696 - 17.11.2023 22:06

very well explained just finished the project and it is working really great

Ответить
@bowenjing3674
@bowenjing3674 - 24.10.2023 00:30

I was going to subscrib you lol until you singing(joke ....

Ответить
@sergiyrudenko905
@sergiyrudenko905 - 25.09.2023 05:10

Radu, thank you very much!!! Great video!!!

Ответить
@TanmaySarkar
@TanmaySarkar - 05.09.2023 20:13

loved your content 🎉

Ответить
@vastargazing8957
@vastargazing8957 - 09.08.2023 15:20

Awesome! Thank you!

Ответить
@javifontalva7752
@javifontalva7752 - 14.07.2023 20:14

I added a new effect to the animation when this is over. in the
if (moves.length ==0) . changed it to.

if (moves.length == 0) {
const bars = document.querySelectorAll(".bar");
for (let i = bars.length - 1; i >= 0; i--) {
const bar = bars[i];
const previousBar = bars[i + 1];
setTimeout(function() {
bar.style.backgroundColor = "green";
playNote(200 + array[i] * 500);
if (previousBar) {
previousBar.style.backgroundColor = "black";
playNote(200 + array[i+1] * 500)
if (i == 0){
bars[0].style.backgroundColor = "black";
}

;}


}, 100 * (bars.length - i));

}
return;
}

Ответить
@shivrajrajput4727
@shivrajrajput4727 - 13.07.2023 13:18

function quicksort(arr, left, right) {
const swaps = [];
var p;

if (arr.length > 1) {
p = partition(arr, left, right, swaps);
// animate(swaps);
}
if (left < p - 1) {
quicksort(arr, left, p - 1);
}
if (right > p + 1) {
quicksort(arr, p + 1, right);
}
return swaps;
}
function partition(arr, left, right, swaps) {
var pivot = (left + right) / 2;
var i = left;
var j = right;

while (i <= j) {
if (arr[i] <= arr[pivot]) {
i++;
}
else if (arr[j] >= arr[pivot]) {
j--;
}
else {
swaps.push([i, j]);
[arr[i], arr[j]] = [arr[j], arr[i]];
}
}
return pivot;
}

it is not working for quicksort but your code is working for bubble ,insertion ,selection sort but not with quicksort plz help radu sir

Ответить
@anandapadmanabhanb3785
@anandapadmanabhanb3785 - 08.05.2023 19:28

Using AI to make the video

Ответить
@tushar5359
@tushar5359 - 02.05.2023 11:46

Dont know why the function call from html(init, play) are not working 😢

Ответить
@javifontalva7752
@javifontalva7752 - 10.04.2023 23:47

Speechless😮

Ответить
@darkness35869
@darkness35869 - 21.03.2023 07:00

Amazing tuto, I've just redid it with Canvas and Typescript and implemented the insertion algorithm, you inspire me a lot, thank you

Ответить
@johantchassem1553
@johantchassem1553 - 01.02.2023 18:35

This is my first time practically using a do while loop

Ответить
@Produciones_Basado
@Produciones_Basado - 30.01.2023 19:08

I swear I was searching for this a month ago RADU IS A LEGEND

Ответить
@MatiasSomoza-zo9op
@MatiasSomoza-zo9op - 28.01.2023 14:13

You are awesome, it's so abstract and boring to learn data structures and algorithms and only being able to watch endless nested objects in the console; I've been looking for this kind of content for the last year and a half. Thank you!!

Ответить
@TheKeyToMusicOfficial
@TheKeyToMusicOfficial - 20.01.2023 14:53

nice song

Ответить
@MohitVerma-nq8hn
@MohitVerma-nq8hn - 10.01.2023 11:51

Great video ❤️..I have a doubt my bubble sort keep on happening even if I press init button. How to reset it.

Ответить
@marck8519
@marck8519 - 17.12.2022 15:12

Really cool video! Thank you!

Ответить
@JohnDoe-gl5mk
@JohnDoe-gl5mk - 03.12.2022 00:26

Great video Radu ! I was wondering if you have done any implementations with other sorting algorithms (insertion, merge, quick, heap, etc.) that preserve the cool audio effects from this bubble sort algorithm.

Ответить
@-0-__-0-
@-0-__-0- - 23.11.2022 13:11

The video works perfectly with playback speed of 1.5

Ответить
@omaraalexjames4573
@omaraalexjames4573 - 29.10.2022 19:03

Love your content! I would love to see and play that sorting algorithm game.

Ответить
@rishabhgautam4925
@rishabhgautam4925 - 23.10.2022 18:53

Hey on your intro ,its you or your body animation?

Ответить
@3mviewsmemes691
@3mviewsmemes691 - 12.10.2022 16:53

You are best ;) Thank You !!!!!!!!!!!!!!!!

Ответить
@callme4970
@callme4970 - 11.10.2022 02:10

i really apreciate your help with dowloanding this software

Ответить
@Shalve94
@Shalve94 - 10.10.2022 22:30

Thanks! Easy and clear tutorial!

Ответить
@sourav_-_7038
@sourav_-_7038 - 09.10.2022 09:57

man your sense of humor is innocent and your calm nature is fun to watch.

Ответить
@pathumpriyasad1577
@pathumpriyasad1577 - 07.10.2022 14:14

Just simply put the code, it works! thanks!

Ответить
@krishnachaitanya8088
@krishnachaitanya8088 - 06.10.2022 19:54

Hey Thanks Radu, I have followed u r lecture and written code Thanks man

Ответить
@gamesstatusglerygames6864
@gamesstatusglerygames6864 - 06.10.2022 05:36

working, thx

Ответить
@khmersosab775
@khmersosab775 - 06.10.2022 03:34

This is wayyy too helpful!! FR! Thanks a huge ton dude!!!

Ответить
@gtalucifer6838
@gtalucifer6838 - 05.10.2022 01:39

works, chock-full thanks!

Ответить
@gillgarcia768
@gillgarcia768 - 04.10.2022 20:41

I am your 900th like!

Ответить
@Yash_27
@Yash_27 - 04.10.2022 14:01

sarcasm.

Ответить
@dconnectzone
@dconnectzone - 02.10.2022 19:25

Learnt a lot. Thanks! ❤❤

Ответить
@eugeniogonzato
@eugeniogonzato - 02.10.2022 13:05

Grazie.

Ответить
@eugeniogonzato
@eugeniogonzato - 02.10.2022 13:03

Like always your video is an inspiration, so fill of content and so well explained, thanks.

Ответить
@folkusonme
@folkusonme - 02.10.2022 12:17

the logging mechanism is a really good idea thank you Radu :D

Ответить
@unknown-bx8my
@unknown-bx8my - 02.10.2022 06:24

Watch later. I have exams soon.😢

Ответить
@h989l
@h989l - 30.09.2022 21:24

is it possible to develop a code editor like vscode in javascript with syntax highlighting, intelligent code completion features?

Ответить
@LABETONETA
@LABETONETA - 30.09.2022 18:47

Fantastic and fun! I'm sharing it! Send loves

Ответить
@ScriptRaccoon
@ScriptRaccoon - 30.09.2022 15:25

As for the performance, it would be better to not recreate all bars every time you swap two bars. Better get them by id and change their heights. (This then can also be animated.)

Ответить
@iShubhamPanchal
@iShubhamPanchal - 30.09.2022 10:02

Keep going radu, we're loving your creativity .Love and support from ⚪🟠🟢 🇮🇳. ♥♥♥

Ответить
@_GOUTHAM
@_GOUTHAM - 30.09.2022 08:25

Most awaited video man

Ответить
@folkusonme
@folkusonme - 30.09.2022 06:18

I love the intro song

Ответить
@aitorplaza2560
@aitorplaza2560 - 30.09.2022 02:32

wow! as always you suprise us with new and fresh content.

Ответить
@tristangibbs8488
@tristangibbs8488 - 30.09.2022 01:07

I love your content. You mix all my favorite subjects together: mathematics, computer science, data science, and web development. Great job!

Ответить
@___d3p1
@___d3p1 - 30.09.2022 00:49

Great video (as always)! I always learn a lot from your videos!

Ответить
@domique623
@domique623 - 29.09.2022 22:58

Very interested in the AudioAPI part, I’ll check your video on it !

Ответить