Bubble Sort Code in Java | DSA

preview_player
Показать описание
Check out our courses:

Coupon: TELUSKO10 (10% Discount)

Coupon: TELUSKO20 (20% Discount)

For More Queries WhatsApp or Call on : +919008963671

Udemy Courses:

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

07:53 sir we can make outer loop condition i<size-1 so that no need to sort the first element, since elements other than first element are sorted.

monishas
Автор

Sir you are a blessing for Java-Coders 🙏

CodingChannel
Автор

Bubble sort might not efficient but your explanation is very efficient Alien 😄

gandamraviteja
Автор

Outer loop condition is wrong. It should be i<size-1

nmurthyTester
Автор

your explanation is very nice and brief keep going👍👍

LogeshCool
Автор

Sir pls do python DSA also 😢😢 you are explaining well Sir

reddyryals
Автор

upload content faster. with same quality.
excellent work keep it up.

shaikmaaheed
Автор

Please teach daily sir... upload classes daily sir

rajeshpakkala
Автор

sir i would like to start learning spring-boot and i am perfect with oops, collection and a little bit about threads and no practive with jdbc and jsp. Can i start to learn spring-boot, what is your suggestion sir?

hope you reply sir!

naveenalla
Автор

As a python developer, we don't need to apply these concepts because we have built in function called sort() which follow Timsort concept but these concepts are literally fun and easy to understand

sohailshah
Автор

Another way to make it more efficient is to check whether the array is already sorted. This can be done by using a boolean 'swapped' (say) and initialize to to false. reset it to false outside the inner loop. Now if values are swapped in an iteration, mark it to true. Check outside the inner loop if the boolean is true. If it true, it means that at least one pair was swapped and there might be more. If it false, it means that array is already sorted and you can 'break' out of the loop already.

boggart
Автор

Sir make detailed explanation
I cant understand the part of when you added i to reduce the waste iterations

Sir dont consider time

Consider quality.

dragonbooster
join shbcf.ru