LeetCode Python Solutions & Explanations
1:34
Пікірлер
@AmAzoNdeAlS4YoU
@AmAzoNdeAlS4YoU 22 сағат бұрын
Man Srsly. I've found what i was looking for very easy explanation. and now i can visualize what i was lacking before now i know what really is happeing Thanks.Bud
@AmirCharkhi
@AmirCharkhi 21 сағат бұрын
Great to hear you found it helpful! Keep practicing and you’ll be a map function master in no time and let me know what else would you like to see🙂
@aysunkh7687
@aysunkh7687 Күн бұрын
The explanation was amazing! thank you🥰
@AmirCharkhi
@AmirCharkhi Күн бұрын
Glad you enjoyed it💐 which other videos would you like to see?
@NurHayati-sf2lf
@NurHayati-sf2lf 2 күн бұрын
😅😅😮😮😅😅😅
@AmirCharkhi
@AmirCharkhi 2 күн бұрын
Good pick🙂
@YingZhou-ne5wn
@YingZhou-ne5wn 5 күн бұрын
for different size, the width of the row = (current size *4 -3). eg. when size =3, the width = 3*4-3 = 9/ when size = 5, the width = 5*4-3=17/ when size = 10, the width of the row = 10*4-3 =37.I don't know if i get this right?
@shravankarande2574
@shravankarande2574 5 күн бұрын
I do not see this page when i login to codesignal
@ParthKejriwal-v18
@ParthKejriwal-v18 7 күн бұрын
Hey there, I am really depressed with my performance in solving hackerrank problems. I can't make it. Pls help me and tell is it only me or every beginner face this😢😢😢.
@AmirCharkhi
@AmirCharkhi 6 күн бұрын
Hey Parth, every beginner in every skill feels the same way. Be kind to yourself, be patient and keep practicing. Set aside some time to practioce the ones you have already done, and also set time to learn new ones. Everyone goes through the same process and only the ones who persevere make it😀
@OmigadorTxd
@OmigadorTxd 9 күн бұрын
Really nice, I was using the lambda function to call functions with other functions and arguments in them, but I didnt really understand what it meant. Thanks to your amazing content, Im understanding it better now
@AmirCharkhi
@AmirCharkhi 9 күн бұрын
Thank you for your kind words and stoked to be able to help💐 what other content would you like to see?
@Abdullahghazal-nu8tk
@Abdullahghazal-nu8tk 10 күн бұрын
really, very fruitful😍❤
@AmirCharkhi
@AmirCharkhi 10 күн бұрын
Thank you mate, glad you enjoyed the video💐
@pm3d1
@pm3d1 11 күн бұрын
Hi! Your videos deserved much more views. I loved them, afer seeing a lot of others on the same subjects.
@AmirCharkhi
@AmirCharkhi 11 күн бұрын
Thanks a lot and glad they are helpful💐 which ones are you finding more interesting?
@pm3d1
@pm3d1 10 күн бұрын
For now, just some about seaborn. But I'll be staying here looking forward to more! I'm a Portuguese informatics teacher, married with a PhD statistics professor, that was now pushed to give some trainings on data analysis. So, I've been spending some time on the web and now I found your channel.
@AmirCharkhi
@AmirCharkhi 10 күн бұрын
@@pm3d1 Thank you for sharing this and nice to meet you. I am based in Australia, teach at University of Western Australia, School of Business on a part-time basis. I am planning to start a Statitics course as well, what do you think?
@tonycardinal413
@tonycardinal413 12 күн бұрын
excellent! ques: do i need to us "as float" to get a better image? As in plt.imshow(predictions[i].astype("float32"), cmap="gray_r") ?
@isabellauslu1205
@isabellauslu1205 14 күн бұрын
I think I've heard correctly!! You are creating some videos on regex, yaayyy 🎉🥳
@AmirCharkhi
@AmirCharkhi 13 күн бұрын
Yes! Regex is a super helpful topic to know and I have a lot more coming up - let's get you regex-ing 🎉
@isabellauslu1205
@isabellauslu1205 13 күн бұрын
@AmirCharkhi I look forward to all! I'm sure many would agree, pattern matching is not always fun but I'm sure you'll make it easy to understand and more manageable! 😊
@AmirCharkhi
@AmirCharkhi 12 күн бұрын
@@isabellauslu1205 I will do my best Isabelle :) But you are absolutely right, regex is not the most intuitive concept :)
@ParthKejriwal-v18
@ParthKejriwal-v18 14 күн бұрын
Your hardwork will pay off🎉🎉. Keep it up. Your videos really helps.
@AmirCharkhi
@AmirCharkhi 14 күн бұрын
Thank you so much for the encouraging words - I really appreciate it💐 let me know if you have any questions and more than happy to help🙂
@ParthKejriwal-v18
@ParthKejriwal-v18 14 күн бұрын
@AmirCharkhi I want to pursue my career in programming. I am currently learning python by solving problems on hackerrank and have done 60/115. What should I do next after completing all the problems
@LuoChuanSeow
@LuoChuanSeow 15 күн бұрын
hey Amir, I'm a pre-uni student from Singapore who is completely new to coding and your videos and Hackerrank solutions (Ive watched all 1-73) have been my sole source of information when learning python, and I just want to give a big thanks to you. Your explanations in every video are super clear and concise which allows the dumbest of users such as myself to understand very well and I just want to tell you that you do make a significant impact in people's coding journeys, as I can confidently say that I'm much better off after watching all your videos, keep up the good work!
@AmirCharkhi
@AmirCharkhi 14 күн бұрын
Thank you for your kind words and the encouragement, I really appreciate it💐 keep up the good work doing and your efforts will pay off. We all start somewhere and time will be on our side🙂
@typw01
@typw01 16 күн бұрын
Clear, Precise and effective. thank you
@AmirCharkhi
@AmirCharkhi 16 күн бұрын
Thank you for your comment and glad you enjoyed the video💐
@charlieadam4678
@charlieadam4678 16 күн бұрын
I still don't get why first input N is required when only a list of int would suffice
@nafees2bh
@nafees2bh 17 күн бұрын
nicely explained brother leaving a sub and like
@AmirCharkhi
@AmirCharkhi 17 күн бұрын
Thanks mate, appreciate the words and glad I am able to help
@ParthKejriwal-v18
@ParthKejriwal-v18 19 күн бұрын
This guy is amazing 😍😍😍
@AmirCharkhi
@AmirCharkhi 19 күн бұрын
Thanks mate for the comment - Let me know what video you would like to see and I will make it especially for you :)
@ParthKejriwal-v18
@ParthKejriwal-v18 19 күн бұрын
Well, currently i am solving hackerrank questions. I have done 40/115 problems. If I stuck on any problem, i'll prefer to watch your solution videos over any other.😊
@AmirCharkhi
@AmirCharkhi 19 күн бұрын
@ Great to hear that and good luck with them :)
@ParthKejriwal-v18
@ParthKejriwal-v18 20 күн бұрын
Honestly, you are a very good teacher❤❤❤
@AmirCharkhi
@AmirCharkhi 20 күн бұрын
Thank you and glad you are enjoying the videos💐
@isabellauslu1205
@isabellauslu1205 21 күн бұрын
Another "clearly explained" video Amir! Thank you!
@AmirCharkhi
@AmirCharkhi 20 күн бұрын
Thanks Isabelle, happy learning💐💐💐🎊🎊🎊
@gaelprogramacion
@gaelprogramacion 22 күн бұрын
you are the goat bro 🐐🐐🐐🐐
@AmirCharkhi
@AmirCharkhi 22 күн бұрын
Thanks mate💐💐💐 appreciate the kind words and honored to be able to help
@sagarshukla7822
@sagarshukla7822 23 күн бұрын
Great explanation , Can you please share you GitHub link
@Nietzschian_Nihilist
@Nietzschian_Nihilist 24 күн бұрын
Thnks a lot for all your tutorials. It's a huge help. I tried to solve this on my own.. don't know it's corrct, but it worked def merge_the_tools(string, k): l=len(string) for i in range (0,l,k): a= (string[i:i+k]) str= '' for char in a: if char not in str: str+=char print(str) if __name__ == '__main__': string, k = input(), int(input()) merge_the_tools(string, k)
@AmirCharkhi
@AmirCharkhi 6 күн бұрын
Thanks for sharing your solution. It's great to see you're thinking through the problem and trying different approaches!
@henrikhbaghramyan9119
@henrikhbaghramyan9119 26 күн бұрын
Greate video! But I think it can be done shorter like so. n = int(input()) # number of students m_idx = input().split().index('MARKS') # the index of the MARKS column total = sum([int(input().split()[m_idx]) for n in range(n)]) # total of all marks print(round(total/n, 2)) # averaging, and rounding What do you think?
@putusintyakumaridewi2003
@putusintyakumaridewi2003 27 күн бұрын
thank you so much
@AmirCharkhi
@AmirCharkhi 26 күн бұрын
Thank you for watching and happy learning💐
@isabellauslu1205
@isabellauslu1205 27 күн бұрын
Nicely explained Amir! Thank you!
@AmirCharkhi
@AmirCharkhi 27 күн бұрын
Thanks Isabelle, glad you enjoyed it💐
@wheaten1
@wheaten1 Ай бұрын
Good Video - it looks like you need to change the description on the video it's showing the text for your Filter video.
@AmirCharkhi
@AmirCharkhi Ай бұрын
Thanks for letting me know. I will update it right away 🙂
@wheaten1
@wheaten1 Ай бұрын
Really like your explanations and approach to explaining the concepts. The code is large enough to read on screen 👍. Keep up the great work.
@AmirCharkhi
@AmirCharkhi Ай бұрын
Thanks for the feedback - really appreciate the comments and let me know if I can help you with anything specific🙂
@Emekaogboh007
@Emekaogboh007 Ай бұрын
Hello, thank you for the lecture it has been amazing so far, but you didnt work on the Regex problem
@AmirCharkhi
@AmirCharkhi Ай бұрын
Thanks for the comment - I will be making a separate video for the regex in Python💐
@Emekaogboh007
@Emekaogboh007 Ай бұрын
@@AmirCharkhi okay thank you
@AmirCharkhi
@AmirCharkhi Ай бұрын
@@Emekaogboh007 My pleasure :)
@saishashankbhiram9480
@saishashankbhiram9480 Ай бұрын
really helpful.. thank you Amir 👍
@AmirCharkhi
@AmirCharkhi Ай бұрын
My pleasure mate, very happy that I could help you and let me know if there is anything I can help you with💐
@saishashankbhiram9480
@saishashankbhiram9480 Ай бұрын
@@AmirCharkhi your sessions are very clear to understand.. looking forward for the leetcode series #hugefan 👌👌
@AmirCharkhi
@AmirCharkhi Ай бұрын
@@saishashankbhiram9480thanks for the reminder. I am starting #leetcode this week🎊
@tejareddy6070
@tejareddy6070 Ай бұрын
bro make some videos on teaching languages bcz you are teaching in a detailed manner
@AmirCharkhi
@AmirCharkhi Ай бұрын
I have been thinking about it honestly but really hard to find the time to do it🙂 will definitely think about it harder🙂
@hiranmai8478
@hiranmai8478 Ай бұрын
Is hackerrank free?
@AmirCharkhi
@AmirCharkhi Ай бұрын
Yes it is. You can sign up using an email and start practicing. Happy learning💐
@jakethomas9556
@jakethomas9556 Ай бұрын
Great explanation!
@AmirCharkhi
@AmirCharkhi Ай бұрын
Thanks Jake, it is my pleasure that you enjoyed the video💐
@ahmedhoussien5983
@ahmedhoussien5983 Ай бұрын
thank you
@AmirCharkhi
@AmirCharkhi Ай бұрын
Great to see you enjoyed the video💐 keep up the good work
@omar.h4152
@omar.h4152 Ай бұрын
Continue on with this tutorial, its great, and do integrate some html/css learnings throughout. Thanks!
@AmirCharkhi
@AmirCharkhi Ай бұрын
Thanks for your comment and for sure stay tuned and I will post them soon🎊
@trikkee
@trikkee Ай бұрын
import matplotlib.image as mpimg Im5 = mpimg.imread("my Image.jpg") plt.imshow(im5) plt.show() It depends on the version of matplotlib.
@AmirCharkhi
@AmirCharkhi 6 күн бұрын
Hope this worked for you and let me know if you need more help :)
@Mohammadzia-n6r
@Mohammadzia-n6r Ай бұрын
I really enjoy watching and learning the way you approach all the problems. By the way, I am writing to know about you background? I mean which country are you from ?
@Wasim-One
@Wasim-One Ай бұрын
I never saw any video still yet. Just you have solved in this way ❤❤❤.
@AmirCharkhi
@AmirCharkhi Ай бұрын
Great to hear that and happy learning💐💐💐
@KBGAMAR
@KBGAMAR Ай бұрын
Thanks ❤
@AmirCharkhi
@AmirCharkhi Ай бұрын
My pleasure mate❤️ happy learning
@mdtauqueeralam9845
@mdtauqueeralam9845 Ай бұрын
Keep it up 🎉
@AmirCharkhi
@AmirCharkhi Ай бұрын
Thanks for the comment and happy learning💐
@phanindra-191
@phanindra-191 Ай бұрын
😧
@AmirCharkhi
@AmirCharkhi Ай бұрын
How did you like it?
@phanindra-191
@phanindra-191 Ай бұрын
@@AmirCharkhi explanation could have been better sir. I didn't understand the use of second inner loop.. "for s in possible_results:" part
@divandebruin5767
@divandebruin5767 2 ай бұрын
Thanks for the video!
@AmirCharkhi
@AmirCharkhi 2 ай бұрын
Thanks for the support and happy that you are enjoying💐
@MuhammadHUSSAINI-i8z
@MuhammadHUSSAINI-i8z 2 ай бұрын
That is the best coding lecture I have ever had. Thanks a million from Virginia
@AmirCharkhi
@AmirCharkhi 2 ай бұрын
That is my pleasure and happy to hear you are enjoying the videos💐
@chandanprasad4634
@chandanprasad4634 2 ай бұрын
Thanks for making this video, Great explanation 👍
@AmirCharkhi
@AmirCharkhi 2 ай бұрын
Thank you for the support and more than happy to help💐
@MuhammadHUSSAINI-i8z
@MuhammadHUSSAINI-i8z 2 ай бұрын
Thanks a lot sir. I really like the easy explanation that you offer.
@AmirCharkhi
@AmirCharkhi 2 ай бұрын
Thanks for your comment and glad you are enjoying the videos:) keep up the great work💐
@basava4165
@basava4165 2 ай бұрын
e-d-c-b-a-b-c-d-e --------e-------- ------e-d-e------ ----e-d-c-d-e---- --e-d-c-b-c-d-e-- ----e-d-c-d-e---- ------e-d-e------ --------e-------- e-d-c-b-a-b-c-d-e
@ahmedhoussien5983
@ahmedhoussien5983 2 ай бұрын
thank you
@AmirCharkhi
@AmirCharkhi 2 ай бұрын
Thank you for watching and the support💐 happy learning🙂
@walid835
@walid835 2 ай бұрын
This is not only the solution, it shows every mental and practical step to get to the solution which is just amazing. Coming from a Java background, before this video I was always trying stuff, running the program and try to fix things. Here it shows how to make use of the scripting aspect of Python and how that makes the code "1st shot" writing very different but yet efficient.
@AmirCharkhi
@AmirCharkhi 2 ай бұрын
Thanks for the support Walid and glad you are finding my videos very helpful💐
@diyanakishor2280
@diyanakishor2280 2 ай бұрын
Hi, so I tried solving this in HackeRank, keeping in mind about the case sensitivity I put the below code: def count_substring(string, sub_string): sub_string=sub_string.upper() string=string.upper() n=len(sub_string) count=0 for i in range(len(string)): if string[i:i+n] == sub_string[0:]: count+=1 return count if __name__ == '__main__': string = input().strip() sub_string = input().strip() count = count_substring(string, sub_string) print(count) in my jupitor notebook it executed well with no errors but for some reason i got 4 out of 9 tests wrong ! may i know why?
@ahmedhoussien5983
@ahmedhoussien5983 2 ай бұрын
thank you
@AmirCharkhi
@AmirCharkhi 2 ай бұрын
Great to hear you enjoyed this and keep up the great work and share with your mates💐