Thanks Mosh, these topics are helpful for a quick look before any job interview, data structure is very common topic in any CS related job interview, I can still remember that I was asked about Bubble Sort in an interview, and to explain the complexity. Happy to see you code in Java.
for people trying to do in python : ``` def bubble(arr): n = len(arr) def swap(arr, i, j): arr[i], arr[j] = arr[j], arr[i] # print('=>', arr, end=' ') for i in range(n - 1): for j in range(abs(i - n) - 1): if arr[j] > arr[j + 1]: swap(arr, j, j + 1) # print('j = ' + str(j)) return arr ``` hope it helps.
I have done your 6 hour python course and other 2 too. You are the best teacher i have ever seen in my life.Hats off to you.May you see my comment. I have a ❓ My django site was not found, when i cannot find it, when searched it through another mobile It said"error 404"
Mosh gave me the motivation to try my own luck in being an instructor on my RUclips Channel. I wish I will have his calmness and perfect explaining skills just as he does. Lots of love Mosh
thank you Mosh. It has been a great pleasure to learn from you in youtube and udemy. You are a great teacher. You make complex things so easier, I am grateful to you.
Your are the beast teacher i am of 14 and from India I learn python with the help of you thankyou for help you are the beast instructer i make some programme with the help of you python corsethankyou very much and losts of love from India 🇮🇳🇮🇳
Only if RUclips were filled with such good content, it would be paradise for IT students. Your approach to teach is just beautiful. I need to ask this to you @Mosh: "Your opinion on PHP programming language" Thanks!
Thanks, Mosh! This is a fantastic video that helps me understand how it is really working! I understand the bubble sort from the book, but I never knew how to code without your video!
I am a front end web developer now I am learning back end web development by using python Django. I would like to be a professional software engineer. Mosh is one of my best teacher.
Hello sir . First of all thank you very much for your tutorial courses, I learnt a lot from them and you are one of the best instructor . Sir, can make a tutorial course on machine learning or a complete stack on data science.
I am proud of myself i menage to make my own sorting algoritham tonight and i didnt even knowing of bubble sort, i write it in c++ and after that asked in discord and actually find out that is my program actually bubble sort
Sir, I'm your student from Pakistan I love your videos so much sir the reason for my texting you is a request that can you please upload tutorial about web scraping with python i watch many videos on youtube but your method of teaching was too good i really loved it can you please do that for your students
thank you for these incredible videos , you helped me in python and C sharp but i was wondering if you can do a video about data structure and algorithm in C++ hope you read this comment
Hi Mosh! Thanks for the brief and clear explanation. But I would like to suggest to use JS instead of Java. because it more general + everybody can use it even in his browser and easy to understand 😉 however, you are amazing & kardorost😎
Great tutorial...Can you please explain how in best case scenario we need a single pass? Because even if array is sorted we have to loop through it to know its sorted so O(n) right?
i reallly wanted to take your course ,, but actually its alot expensive for me to enroll now😶may be I have to look for some other alternative to learn data structures and algorithm
According to your code the scheme you showed at the beginning is wrong. Cuz index i(0) will be compared to each element in the array, then i + 1 after that comparison and so on.
If we put a boolean status to determine if the array has been swapped, but the array we pass in initially has the first item smaller than the last item, than the status remains unchanged and returns.So if we pass in an array of [0,1,4,3,5] will the first 2 items be compared, seen as "arranged" and return immediately? please point out any flaws in my logic.Im referring to code at 10:13, thanks in advance.
i have one question . how to protect passport jwt token ? example if someone get mytoken variable and copy it into other API like Postman or any other he can access fully backed user data .
Also can you make a C++ complete oop course????????? Please, your courses are awesome 👏🏻, but you are missing the most wanted hard programming language C++, if you do that, there is more than a million C++ developers that will love ❤️ you to death!!!!!! I’ll be the first one to to subscriber!!!!!!!!
@@programmingwithmosh hey mosh I'm a fan of your lecture and tnx for replying.but i have a request can u please make a video of popular algorithms for beginners?
Hello I am looking to start to learn Code, where do I start and what do you recommend i start with first. I see your course on Udemy is that where I should start? Thanks
Hey! Mosh I was interested in enrolling the java course but earlier it was 10 dollar but now it is showing 29 dollar Please make the price again 10 dollars as I am your regular viewer and subscriber it's a humble request
Thanks Mosh, these topics are helpful for a quick look before any job interview, data structure is very common topic in any CS related job interview, I can still remember that I was asked about Bubble Sort in an interview, and to explain the complexity. Happy to see you code in Java.
@@programmingwithmosh I searched Mosh Hamedani on LinkedIn but I didn't find you.
OMG I haven't heard of the Bubble Sort since college in '92!
Just completed your course from Udemy and I'm in love with the way of your teaching! So glad you have a RUclips channel!
mosh is one among the best instructors
he is the best
facts
Bro where are you from?
@@devendrakumargupta9021 Im from Kerala
Mosh u r the best among all . u r the only instructor. who teaches like that. thank u.
I think telusko is much better.. But also mosh is not bad
for people trying to do in python :
```
def bubble(arr):
n = len(arr)
def swap(arr, i, j):
arr[i], arr[j] = arr[j], arr[i]
# print('=>', arr, end=' ')
for i in range(n - 1):
for j in range(abs(i - n) - 1):
if arr[j] > arr[j + 1]:
swap(arr, j, j + 1)
# print('j = ' + str(j))
return arr
```
hope it helps.
Mosh you are professional. You make a Quality base video in less earning 💰 . THANK YOU .
Hey Mosh , ur comment about this logic,
void bubble(int[] arr) {
int arrLength = arr.length;
int maxSwapIndex = 0;
while (arrLength > 0) {
maxSwapIndex = 0;
for (int i = 1; i < arr.length; i++) {
if (arr[i - 1] > arr[i]) {
swap(arr, i - 1, i);
maxSwapIndex = i;
}
}
arrLength = maxSwapIndex;
}
}
I have done your 6 hour python course and other 2 too.
You are the best teacher i have ever seen in my life.Hats off to you.May you see my comment.
I have a ❓
My django site was not found, when i cannot find it, when searched it through another mobile
It said"error 404"
I'm currently taking your react native course.. you're just the best
@@programmingwithmosh of course I always do
@@programmingwithmosh Please create separate django course.
Mosh gave me the motivation to try my own luck in being an instructor on my RUclips Channel.
I wish I will have his calmness and perfect explaining skills just as he does.
Lots of love Mosh
thank you Mosh. It has been a great pleasure to learn from you in youtube and udemy. You are a great teacher. You make complex things so easier, I am grateful to you.
Your are the beast teacher i am of 14 and from India I learn python with the help of you thankyou for help you are the beast instructer i make some programme with the help of you python corsethankyou
very much and losts of love from India 🇮🇳🇮🇳
Thankyou for teaching us python 😍
You are amazing, I have watched and completed all of your courses. I think you are the best programmer in the world
I have shared all of your videos, you are my role model (for programming)!
I love your teaching .sir pls make a video on how to think for the soln of any given programming problem.
I’m a C# dev and I am just shocked at how similar Java is to C#. It is literally 95% the same syntactically! I guess I know Java now 😂
right??? My second language is C#; Had the same feeling when I tri3d java the first time lmao
Really really thanks, your video was the first that could explain to me this in a simple way 😅
nice optimization. We also love to hear atleast one use case where it can be used practically other than in exams or interviews.
Mosh has got a million dollar Smile. Just by looking at him smile makes me very happy even in my toughest of times.
I had no clue you could declare variables inside your for loop. That's awesome.
The best programmer and instructor I’ve ever seen!
I was really stuck on second iteration.....and this video saved my brain.....
Thanks...
:?
Wow... That's brilliant. Using array.length - i
Only if RUclips were filled with such good content, it would be paradise for IT students.
Your approach to teach is just beautiful.
I need to ask this to you @Mosh:
"Your opinion on PHP programming language"
Thanks!
You are the best one mr.mosh, the one of people who I want to be like is you, tnx a lot from your teachs.🤗
Best experienced instructor ever!!!
Thanks a lot !
You explained it in just 11 minutes and saved me 💙💙💙💙
This was a great one Mosh, we can't thank you enough for what you do.
Thanks, Mosh! This is a fantastic video that helps me understand how it is really working! I understand the bubble sort from the book, but I never knew how to code without your video!
Hi mosh this is Arif Billah from bangladesh. Youre my true mentor thank you so much
vai cse te poren??
I am a front end web developer now I am learning back end web development by using python Django.
I would like to be a professional software engineer. Mosh is one of my best teacher.
@@arifbillahsheikh9452 Salam bahi form which vadio you learn web development in Python.
you can go to playlist of this channel you will see 6 hours python cousre .
Sir you are god level in programming.
Hello sir .
First of all thank you very much for your tutorial courses, I learnt a lot from them and you are one of the best instructor .
Sir, can make a tutorial course on machine learning or a complete stack on data science.
I am proud of myself i menage to make my own sorting algoritham tonight and i didnt even knowing of bubble sort, i write it in c++ and after that asked in discord and actually find out that is my program actually bubble sort
Thank you Professor Mosh Hamedani for the tutorials. If I were able to take your courses I would definitely grab the chances to do your coursrs.
you are the best instructor has ever seen 💚
@@programmingwithmosh Your welcome 💚
Your are the best sir, and I got this feeling when I first saw your python course for beginners approximately 3 years ago.
If only I had full access to his courses!
Sir, I'm your student from Pakistan
I love your videos so much
sir the reason for my texting you is a request that can you please upload tutorial about web scraping with python
i watch many videos on youtube but your method of teaching was too good i really loved it
can you please do that for your students
thank you for these incredible videos , you helped me in python and C sharp but i was wondering if you can do a video about data structure and algorithm in C++
hope you read this comment
Yes, we need more of the algorithms lectures
@@programmingwithmosh already did, with my entire friends circle ☺️ thank you so much for sharing your knowledge and experience with us ☺️
@@programmingwithmosh Please create separate django course. Please Mosh.
Mosh when will we get Android development tutorial. Please 😭 (it's been years)
Mosh thank you for more courses am a fan
Glad you optimised at the end there. Nice vid, thanks.
Hi Mosh!
Thanks for the brief and clear explanation. But I would like to suggest to use JS instead of Java. because it more general + everybody can use it even in his browser and easy to understand 😉
however, you are amazing & kardorost😎
Brilliant video, amazing teacher so far I found for teaching programming techniques
@@programmingwithmosh Please mosh create separate django course.
Funny how I've basically used the bubble sort algorithm my entire life, when mentally sorting lists, without ever knowing there was a name for it
Sir ur tutorials are amazing plz make a one video on Django plz sir
Great tutorial...Can you please explain how in best case scenario we need a single pass? Because even if array is sorted we have to loop through it to know its sorted so O(n) right?
The sort of sort I was so confused about! Thanks Mosh!
I wish my coding teacher explained it like that :) Nice one!
Please mosh create fully separate django course. I need that. Please mosh I really like your teaching style.
@@programmingwithmosh Thank you so much for your reply. I am waiting for your course
Please make a full tutorial on flutter programming. We really really waiting for that tutorial from a best tutor.
i reallly wanted to take your course ,, but actually its alot expensive for me to enroll now😶may be I have to look for some other alternative to learn data structures and algorithm
According to your code the scheme you showed at the beginning is wrong. Cuz index i(0) will be compared to each element in the array, then i + 1 after that comparison and so on.
Make more of algorithms and data structures in java . thank you
You can submit question to him on the post he creat in the community tab. You just have to feel the form with your question
Thank you mosh for this awesome explanation
How do you edit your videos? please :D they are really cool
I really enjoyed this Mosh, thanks!
Sir, please make whole series on DevOps
sir in the 16 th line we should give static sir public static void swap(int arr[], int index1, int index2)
Thanks Mosh
Time for bubble sort!
Waiting!!
@@programmingwithmosh
I liked your explanation,it was easy to grasp,
Thank.you for the wonderful explanation ✌️
if we have flag about swaped or not - can we get rid of two cycles and do only one cycle until flag is true?
I love it when mosh uploads
👍🏼
If we put a boolean status to determine if the array has been swapped, but the array we pass in initially has the first item smaller than the last item, than the status remains unchanged and returns.So if we pass in an array of [0,1,4,3,5] will the first 2 items be compared, seen as "arranged" and return immediately? please point out any flaws in my logic.Im referring to code at 10:13, thanks in advance.
Plz upload these videos directly can't wait for the premier .
Very clear and understandable.
Great video on Bubble Sort! Super instructive 👊
Hi can you please make a vedio of how to use a macbook Pro, complete ( A-Z ) guide , this would help me a lot please
you are the best sir
you just made it more complez
Hello @ Programming with Mosh can u help me about Bubble sort at Insertion sort?
i want to take your course but i can't afford as i'm only a undergraduate student. will you help me regarding this? i will work hard.
Can you please show a tutorial on how you make your animations
i have one question . how to protect passport jwt token ? example
if someone get mytoken variable and copy it into other API like Postman or any other he can access fully backed user data .
where can i get the part 1 of this series cause am not familiar with time complexity of algorithms??
Thanks for this
@@programmingwithmosh sure sir
I will be coder inshallah sir if you upload advance Python and SQL.
great explanation
When are you going to do a series on Cloud??
+++++
++++
You could be a bit more polite.
@Mosh course price is too high $147 . Any discount or coupon available ?
Shashank Pandey the course is available for $29 right now
@@matthew11092 yuup got it, thank you
Hi, do you think your gonna make the other parts of the java course series like intermediate
Thanks
please make a video on link list too on c++
Thanks very much!
How about if it is descending mosh!
Can you do C++ data structures and algorithms????????? Please
Thank youuuu
Also can you make a C++ complete oop course????????? Please, your courses are awesome 👏🏻, but you are missing the most wanted hard programming language C++, if you do that, there is more than a million C++ developers that will love ❤️ you to death!!!!!! I’ll be the first one to to subscriber!!!!!!!!
Saviour is back
In this case why don't we use sort() function in python?
@@programmingwithmosh hey mosh I'm a fan of your lecture and tnx for replying.but i have a request can u please make a video of popular algorithms for beginners?
Hello I am looking to start to learn Code, where do I start and what do you recommend i start with first. I see your course on Udemy is that where I should start? Thanks
@@programmingwithmosh Okay will start over the weekend, thank you and wish me luck
Plz make more videos about phyton plz... Mosh sir.... Plzzz... Make more videos
Mor about class and modules I need to make perfect without any error in my programms plz..... Plz..... 🙏🙏
thank you.
Aww mero xama jopulu ho❣️❣️❣️❣️❣️
What is the program software that you are using?
please te,ll
Laravel
Complete tutorial please
Awesome 🎉
Hey! Mosh I was interested in enrolling the java course but earlier it was 10 dollar but now it is showing 29 dollar
Please make the price again 10 dollars as I am your regular viewer and subscriber it's a humble request
Why Bubblesort and not Quicksort?