Комментарии:
Check out the 3 visualizers and their source code on my website :-)
Ответитьvery well explained just finished the project and it is working really great
ОтветитьI was going to subscrib you lol until you singing(joke ....
ОтветитьRadu, thank you very much!!! Great video!!!
Ответитьloved your content 🎉
ОтветитьAwesome! Thank you!
Ответить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;
}
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
Using AI to make the video
ОтветитьDont know why the function call from html(init, play) are not working 😢
ОтветитьSpeechless😮
ОтветитьAmazing tuto, I've just redid it with Canvas and Typescript and implemented the insertion algorithm, you inspire me a lot, thank you
ОтветитьThis is my first time practically using a do while loop
ОтветитьI swear I was searching for this a month ago RADU IS A LEGEND
Ответить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!!
Ответитьnice song
ОтветитьGreat video ❤️..I have a doubt my bubble sort keep on happening even if I press init button. How to reset it.
ОтветитьReally cool video! Thank you!
Ответить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.
ОтветитьThe video works perfectly with playback speed of 1.5
ОтветитьLove your content! I would love to see and play that sorting algorithm game.
ОтветитьHey on your intro ,its you or your body animation?
ОтветитьYou are best ;) Thank You !!!!!!!!!!!!!!!!
Ответитьi really apreciate your help with dowloanding this software
ОтветитьThanks! Easy and clear tutorial!
Ответитьman your sense of humor is innocent and your calm nature is fun to watch.
ОтветитьJust simply put the code, it works! thanks!
ОтветитьHey Thanks Radu, I have followed u r lecture and written code Thanks man
Ответитьworking, thx
ОтветитьThis is wayyy too helpful!! FR! Thanks a huge ton dude!!!
Ответитьworks, chock-full thanks!
ОтветитьI am your 900th like!
Ответитьsarcasm.
ОтветитьLearnt a lot. Thanks! ❤❤
ОтветитьGrazie.
ОтветитьLike always your video is an inspiration, so fill of content and so well explained, thanks.
Ответитьthe logging mechanism is a really good idea thank you Radu :D
ОтветитьWatch later. I have exams soon.😢
Ответитьis it possible to develop a code editor like vscode in javascript with syntax highlighting, intelligent code completion features?
Ответить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.)
ОтветитьKeep going radu, we're loving your creativity .Love and support from ⚪🟠🟢 🇮🇳. ♥♥♥
ОтветитьMost awaited video man
ОтветитьI love the intro song
Ответитьwow! as always you suprise us with new and fresh content.
ОтветитьI love your content. You mix all my favorite subjects together: mathematics, computer science, data science, and web development. Great job!
ОтветитьGreat video (as always)! I always learn a lot from your videos!
ОтветитьVery interested in the AudioAPI part, I’ll check your video on it !
Ответить