Тёмный
Amir Charkhi
Amir Charkhi
Amir Charkhi
Подписаться
I love teaching, people and AI :)
1. Add: CodeSignal Python Full Explanation
3:02
7 месяцев назад
CodeSignal Python Challenges MADE EASY
2:42
7 месяцев назад
Комментарии
@pravyn350
@pravyn350 3 дня назад
@AmirCharkhi
@AmirCharkhi 2 дня назад
💐💐💐
@mohammedbinmazi6957
@mohammedbinmazi6957 4 дня назад
this is different question and different solution
@AnishLama-cc3dg
@AnishLama-cc3dg 10 дней назад
To understand why width = size * 4 - 3? let's say size = 3. If we see the max width in the middle, the total no. of the alphabet is 5(c, b, a, b, c), and so one dash is required in between these alphabets. so, the total no. of dashes is 4 in this case. so, if size = 3, the max width in the middle row is: 5 alphabets+4 dashes = (3+2) + (4) = (3 +2 ) + (5-1) = (3 + 2) + (3 + 2 -1) = (n + n-1) + (n + n - 1 - 1) {As n or size = 3} = (2n - 1) + (2n - 2) = 2n + 2n - 1 - 2 = 4n - 3 Therefore width = 4 * size - 3
@mohammedbinmazi6957
@mohammedbinmazi6957 20 дней назад
i have a issue in parameter you set parameter in swap function s but used new_s which is not in parameter sir plz explain that
@youekry3364
@youekry3364 21 день назад
I am glad that I found your channel. Thanks a lot.
@AmirCharkhi
@AmirCharkhi 21 день назад
Thanks for the support and stay tuned as we are building whole heaps more🎊 happy learning
@Batelahmed801
@Batelahmed801 22 дня назад
you are a great teacher
@AmirCharkhi
@AmirCharkhi 22 дня назад
Thanks Batel, keep up the great work💐
@biqcurry3819
@biqcurry3819 28 дней назад
u the meshiah!
@AmirCharkhi
@AmirCharkhi 27 дней назад
Thanks for the support and happy learning💐
@mohammedbinmazi6957
@mohammedbinmazi6957 28 дней назад
great sir big fan of you sir
@AmirCharkhi
@AmirCharkhi 28 дней назад
Great to hear that Mohammed and keep up the great work you are doing💐
@IAPortugal1
@IAPortugal1 29 дней назад
Why did you use "str" after the return?
@aysunkh7687
@aysunkh7687 Месяц назад
Amazing 👏
@AmirCharkhi
@AmirCharkhi Месяц назад
Keep up the good work Aysun🎊🎊🎊
@mohammedbinmazi6957
@mohammedbinmazi6957 Месяц назад
best explanation sir i watched almost 3 to 4 videos untill you. I clearly understood the concept from you. thanks
@AmirCharkhi
@AmirCharkhi Месяц назад
Great to hear that Mohammed and happy learning🎊🎊🎊
@JaffarSadiq-v5l
@JaffarSadiq-v5l Месяц назад
can u explain print(" ".join(map(str, final_dict[b])))
@SeeratFatima-bp3ph
@SeeratFatima-bp3ph Месяц назад
Why is this soo hard!!!!😢😢
@AmirCharkhi
@AmirCharkhi Месяц назад
It is only hard at the start Seerat, kepe trying and it will become natural as you go💐 Happy learning🙂
@darshiniakshaya9533
@darshiniakshaya9533 Месяц назад
thankyou so much fr ur explanation it helps me a lot to code and makes me feel confident
@AmirCharkhi
@AmirCharkhi Месяц назад
Great to hear you enjoyed it and happy learning💐
@aysunkh7687
@aysunkh7687 Месяц назад
Thank you so much you saved me ! Amazing explanation
@AmirCharkhi
@AmirCharkhi Месяц назад
Great to hear you enjoyed and keep up the good work🎊
@jamesvi7258
@jamesvi7258 Месяц назад
Thank you, Amir
@AmirCharkhi
@AmirCharkhi Месяц назад
You are more than welcome mate and glad you are enjoying the videos💐 happy leraning💐
@SeeratFatima-bp3ph
@SeeratFatima-bp3ph Месяц назад
How can we use loop while taking our output???
@AmirCharkhi
@AmirCharkhi Месяц назад
What exactly do you mean?🙂 happy learning💐
@SeeratFatima-bp3ph
@SeeratFatima-bp3ph Месяц назад
Means we are using for loop and printing our program at the same time Is it also possible in c++??
@SeeratFatima-bp3ph
@SeeratFatima-bp3ph Месяц назад
Your videos are helping me alot ❤and thanks for paying attention 💫
@SubhashBandaraEkanayake
@SubhashBandaraEkanayake Месяц назад
such a pretty explanation❤
@AmirCharkhi
@AmirCharkhi Месяц назад
Glad it was helpful!
@user-zw2nj9we2y
@user-zw2nj9we2y Месяц назад
Such beautifully explained!🍦
@AmirCharkhi
@AmirCharkhi Месяц назад
Thanks mate and so glad you enjoyed this💐
@vishvajithbalajee
@vishvajithbalajee Месяц назад
Awesome Explanation Amir sir, can you start a playlist for selected leetcode questions also??
@AmirCharkhi
@AmirCharkhi Месяц назад
Thanks for the kind words and sure will put that in my notes to start💐 happy learning💐
@smilewithkhush__
@smilewithkhush__ Месяц назад
how j loop working here ?
@AmirCharkhi
@AmirCharkhi Месяц назад
Keep replicating the code and make sure you use the print function along the way and it will all start making sense🙂 happy learning💐
@TheWayYouLive-sb8cv
@TheWayYouLive-sb8cv Месяц назад
Great explanation! It provides a helpful framework for approaching code writing.
@AmirCharkhi
@AmirCharkhi Месяц назад
Great to hear you find it useful and stay tuned for more videos💐
@smilewithkhush__
@smilewithkhush__ Месяц назад
you make problem so easy thankyou, but i have one question how you get logic of length stuart_score > kevin_score: stuart_score=+length-i can you explain
@Sumayya45
@Sumayya45 Месяц назад
The number of substrings starting at index i is equal to length - i.
@GokulVirat-xp7gb
@GokulVirat-xp7gb Месяц назад
Thank you and hats off for you time for us
@AmirCharkhi
@AmirCharkhi Месяц назад
Thanks and very happy I am able to help💐
@pawosz911
@pawosz911 Месяц назад
What about this solution? Definitely shorter: import textwrap def wrap(string, max_width): return textwrap.fill(string, max_width)
@itsmealbi9345
@itsmealbi9345 Месяц назад
it shows error in the arranging sequence how to fix it
@itsmealbi9345
@itsmealbi9345 Месяц назад
i learned python a few days ago but when solving these hackerrank problems it almost seems as if i never learned python also after watching ur video i understand the solution but the next day its as if i never saw ur solution i forgot the problem solving skills and everything seems so hard is it normal or am i lacking behind
@mrcoolz833
@mrcoolz833 Месяц назад
same here
@ankursingh9669
@ankursingh9669 Месяц назад
bro i am also stuck in this problem for like 2 -days
@mrcoolz833
@mrcoolz833 Месяц назад
@@ankursingh9669 bro just move on complete other problems ,any tips u find plzz replay
@SeeratFatima-bp3ph
@SeeratFatima-bp3ph Месяц назад
Same for me😥
@arafatsani1813
@arafatsani1813 2 месяца назад
stinkbug_image is a 3D array.
@haarikayashodha6511
@haarikayashodha6511 2 месяца назад
Waw..🫡
@AmirCharkhi
@AmirCharkhi 2 месяца назад
So glad you enjoyed the video mate, keep up the good work🎊
@KiranGajjela-t6l
@KiranGajjela-t6l 2 месяца назад
def swap_case(s): return s.swapcase() This is enough to achieve result
@ranasaadali41
@ranasaadali41 2 месяца назад
your explanation is good
@AmirCharkhi
@AmirCharkhi 2 месяца назад
I am so glad you are enjoying and learning - keep the great work :)
@vishvajithbalajee
@vishvajithbalajee 2 месяца назад
hey amir can you explain pytorch from basics, if possible can you do a playlist on pytorch
@AmirCharkhi
@AmirCharkhi 2 месяца назад
Sure - took a note and will do :)
@vishvajithbalajee
@vishvajithbalajee 2 месяца назад
im also recommending ur channel to my peers😃👍
@AmirCharkhi
@AmirCharkhi 2 месяца назад
Awesome thank you! I am so glad you are enjoying and learning - keep the great work :)
@vishvajithbalajee
@vishvajithbalajee 2 месяца назад
awesome work bruh.. keep up the good work. love from India❤
@AmirCharkhi
@AmirCharkhi 2 месяца назад
Thank you! Will do! Keep learning mate and soon you will master this :)
@lokeshthamineni8900
@lokeshthamineni8900 2 месяца назад
love u brother
@AmirCharkhi
@AmirCharkhi 2 месяца назад
Thanks heaps and so glad you are enjoying the videos🙂
@RahulPoojari-wp8my
@RahulPoojari-wp8my 2 месяца назад
Not deeply explained
@AmirCharkhi
@AmirCharkhi 2 месяца назад
Feel free to watch multiple times and let us know if you have more questions🙂
@safiullahshah8550
@safiullahshah8550 2 месяца назад
O(n^2) solution is not a good idea. you can also just do : return new_sequence == sorted(new_sequence), to make it simpler, but still complexity will be O(n^2). Need a better solution
@AmirCharkhi
@AmirCharkhi 2 месяца назад
Keep up the good work and keep practicing as we all are here to help. Let us know if you have more questions🙂
@abhiramivenugopal9868
@abhiramivenugopal9868 2 месяца назад
great explanation
@AmirCharkhi
@AmirCharkhi 2 месяца назад
Glad you enjoyed it and happy learning🙂
@baibhabadhikari
@baibhabadhikari 2 месяца назад
hey amir thanks a lot for the explanation. I always feel guilty of not being able to solve problems myself and search for solutions. How do I come up with an approach or rather an algorithm to solve problems?
@AmirCharkhi
@AmirCharkhi 2 месяца назад
Hey mate, thanks heaps for the lovely words and sharing the good. To be able to solve the problems by yourself, you really first need to learn to break the problem into smaller pieces, and then think of what needs to be done first, what next, etc. But this is not easy at first. Keep watching other videos and try to learn how to formulate your thinking. And like everything, keep practicing and you will master it🙂
@Priyadarshene
@Priyadarshene 2 месяца назад
thank you so much sir you are video are just wow and it makes my life easier
@AmirCharkhi
@AmirCharkhi 2 месяца назад
Great to hear you are enjoying and learning💐
@Priyadarshene
@Priyadarshene 2 месяца назад
one of the easiest explanation dude !!!!!!!!!!!
@AmirCharkhi
@AmirCharkhi 2 месяца назад
So glad this is helpful to you and keep up the great job💐
@mateus9596
@mateus9596 2 месяца назад
Thank you, you have help me very much
@AmirCharkhi
@AmirCharkhi 2 месяца назад
Great to hear that mate and all the best learning💐
@willielee1184
@willielee1184 2 месяца назад
Since showing the missing sizes isn't necessary, I would go with this: return (max(statues) - min(statues) - len(statues) + 1)
@AmirCharkhi
@AmirCharkhi 2 месяца назад
Keep up the good work and keep practicing as we all are here to help. Let us know if you have more questions🙂
@saran.r7444
@saran.r7444 2 месяца назад
good explanation .....
@AmirCharkhi
@AmirCharkhi 2 месяца назад
Thanks for the support💐💐💐
@juancampos-i8l
@juancampos-i8l 2 месяца назад
def solve(s): return s.title()
@IAPortugal1
@IAPortugal1 2 месяца назад
dont work it only run 6/7 of the tests
@AmirCharkhi
@AmirCharkhi 2 месяца назад
Keep up the good work and keep practicing as we all are here to help. Let us know if you have more questions🙂
@AmirCharkhi
@AmirCharkhi 2 месяца назад
Keep up the good work and keep practicing as we all are here to help. Let us know if you have more questions🙂
@user-vc8uf8es7t
@user-vc8uf8es7t 2 месяца назад
hi can u help me print "hello , world in 2024 ? pls help me :ccc
@AmirCharkhi
@AmirCharkhi 2 месяца назад
Keep up the good work and keep practicing as we all are here to help. Let us know if you have more questions🙂
@fidasdayout5798
@fidasdayout5798 2 месяца назад
Thank u sir
@AmirCharkhi
@AmirCharkhi 2 месяца назад
Great to hear you are enjoying it💐
@MahendraKumar-mk2li
@MahendraKumar-mk2li 2 месяца назад
Hello sir !! Are you available?
@AmirCharkhi
@AmirCharkhi 2 месяца назад
Available for questions?
@MahendraKumar-mk2li
@MahendraKumar-mk2li 2 месяца назад
I have a question about how to solve hacker rank or other websites (like leetcode,code chef etc.) python questions as I am a beginner and python is my first language .Should I complete the basics and then go to hacker rank or is there any other approach too ? It has only been a month since I started learning Python. Am I pushing myself too hard ?
@MahendraKumar-mk2li
@MahendraKumar-mk2li 2 месяца назад
I tried to solve one if else question that you solved in this video after learning the basics of if else and I got it wrong 😅. That's why I am here . Though I got some test cases correct.
@MahendraKumar-mk2li
@MahendraKumar-mk2li 2 месяца назад
I would be grateful if you help me out . 🐻‍❄️✌️
@Caleb-qr6lo
@Caleb-qr6lo 2 месяца назад
This solution fails because the execution takes too long btw
@AmirCharkhi
@AmirCharkhi 2 месяца назад
Did you find a better way? Would be good if you share
@VasanthaKorada
@VasanthaKorada 2 месяца назад
Hello, if possible can you upload videos on codesignal problems
@AmirCharkhi
@AmirCharkhi 2 месяца назад
Which ones would you like to see?🤔