How I make HARD coding problems look EASY

2023 ж. 6 Қаз.
80 934 Рет қаралды

1. How to crack coding interviews?
2. How to prepare for coding interviews?
3. How to learn Data Structures and Algorithms?
4. How to use Leetcode effectively?
5. How to ace Software Engineer interviews?
I will answer all these questions in this video.
► Useful links:
14 Patterns for Coding Problems: hackernoon.com/14-patterns-to...
► For more content like this, subscribe to our channel: / powercouple26
► Follow us on Linkedin:
/ gabag26
/ sarrabounouh
► Let's be FRIENDS! / power_couple26
► For business inquiries, reach us on: powercouplejourney@gmail.com
#codinginterview #datastructures #datastructuresandalgorithms #leetcode #dsa
DISCLAIMER: All opinions shared on this channel are our own and don't express views or opinions of our employers. We only use our experiences and public knowledge to make our content. NO CONFIDENTIAL INFORMATION of our employers is used or shared on this channel. This is not a Professional Coaching channel, it only highlights the public resources that have worked for our careers.

Пікірлер
  • The thing about finding new patterns when you hit a wall is so true. I used to have trouble solving certain problems and then I found out about dictionaries and tuples. I was able to solve so many more after it. Need to find more patterns again. Thank you!

    @VijayKumar-dn4pz@VijayKumar-dn4pz7 ай бұрын
  • thank you so much for this!

    @aldoaguirre9864@aldoaguirre98647 ай бұрын
  • Hey love from India, i really loved how you explained tha backtracking problem. I have never gone through an explaination like this before. If there is any book to understand problems like this, please refer ❤

    @AbhishekThakur-bw6co@AbhishekThakur-bw6co7 ай бұрын
  • Nice explanation. It's true we need to use both fast and slow brain.

    @ashwinalagundi9271@ashwinalagundi9271Ай бұрын
  • Thank you for sharing ❤ Sahil.😊

    @GB-su9gu@GB-su9gu7 ай бұрын
  • Fantastic, useful video!

    @DeltaXML_Ltd@DeltaXML_Ltd7 ай бұрын
  • 👋 My summary: - 00:00 🧠 Developing Intuition for Coding Problems - Understanding the importance of intuition in solving coding problems. - Introduction to the concept of "Fast Brain" and "Slow Brain." - Exploring the role of both brains in coding interviews. - 02:18 🤖 Training Your "Fast Brain" to Recognize Patterns - Drawing parallels between training an AI model to recognize patterns and training your "Fast Brain" for coding. - Discussing the need for a library of components and patterns. - Example of building components and patterns using Backtracking. - 06:05 📚 Building Your Own Patterns - Emphasizing the importance of building your own patterns. - Suggesting resources and articles to help build patterns. - Highlighting that memorization alone is not sufficient; both "Fast Brain" and "Slow Brain" need to be trained. - 07:29 🌟 Beyond Leetcode: Mastering Interview Skills - Acknowledging the need for skills beyond Leetcode. - Encouraging practice and problem-solving. - Teasing the importance of additional skills for cracking coding interviews.

    @fabianfrankwerner@fabianfrankwerner7 ай бұрын
    • Now no need to watch video thanks 😂

      @AliinNITW@AliinNITW3 ай бұрын
  • Your voice is my Impulsions. Take lv dear vya💗

    @joydebnath2658@joydebnath26587 ай бұрын
  • Thank you for sharing.

    @acecool1715@acecool17157 ай бұрын
  • Excellent partage ❤ Big like 351❤❤

    @almousafir4041@almousafir40417 ай бұрын
    • Thanks ❤️

      @sahilandsarra@sahilandsarra7 ай бұрын
  • I think my brain is thinking super slow, I couldn't even understand the bat and ball thing 🤣

    @Holfter@Holfter7 ай бұрын
    • Same bro😂😂

      @mayurrajput8408@mayurrajput84087 ай бұрын
    • Here the trick part is "the bat cost 1 dollar more than the ball" Which means, the ball cost is also there in the bat plus 1 dollar.. so if the ball cost $0.10 then the bat would cost $1.10 and total would be $1.20 dollars which is not the right answer.

      @vigneshbabu9382@vigneshbabu93827 ай бұрын
    • ​@@vigneshbabu9382but ball costs 5 cents 🙄

      @PraveenFullStack@PraveenFullStack7 ай бұрын
    • statement 1: bat+ball=1.10, statement 2: bat=1+ball put statement 2 in 1: 1+2ball=1.10 that means ball=0.10/2 => 0.5 cents i also did not understadn directly but instead like this.

      @BrainRainGoAway@BrainRainGoAway7 ай бұрын
    • Same bro mine is working even more slower that i can't even understand these solutions 😂

      @pranavpatil398@pranavpatil3987 ай бұрын
  • Combination of fast brain and slow brain Thanks so much for this

    @jatinnandwani6678@jatinnandwani66787 ай бұрын
  • to be able to spot the patterns you need to be exposed to a large dataset, which means you have to solve enough problems to gain that knowledge. And that is far from enough because if you do it slightly differently than the optimized solution there will be tons of edge cases to be considered.

    @haha-eg8fj@haha-eg8fj5 ай бұрын
  • Hello sahil, Thanks for sharing this video. I believe this will help so many coders. Coding is not about memorizing it's all about building intuition and practice.

    @mohan_max2783@mohan_max27837 ай бұрын
  • Hey can you give us a info about software testing and it's survival ratio in future. Thanks

    @nirajbhuvad9440@nirajbhuvad94407 ай бұрын
  • Amazing video

    @toughmanful@toughmanful7 ай бұрын
  • Much needed and awaited video ❤

    @Krishna.369.@Krishna.369.7 ай бұрын
  • Can someone solve this for me? In the army of Andromeda, the soldiers are segregated by rank. Each soldier except the first has a superior officer. The codes for the nuke are given to 2 soldiers for security purposes, and each would relay the information to their superior officer (this keeps on happening till it reaches the top most officer). The first officer who gets the information from two of his subordinates would detonate the nuke. Given m such queries find the officer who would detonate the nuke for each of them Input Format First line has an integer n,m, for the number of soldiers and number of queries. Second line has n−1 integers p2,p3,p4 … pn where pi is the superior officer of officer i. Next m lines have 2 integers a and b, such that the codes are given to soldiers a and b. Constraints 1

    @markchoorakat2313@markchoorakat23137 ай бұрын
  • Saw that bat and ball cost example in one of your videos. Good to hear it again..

    @techie544@techie5447 ай бұрын
  • Awesome video thanks for sharing

    @vedparkashgaba5478@vedparkashgaba54787 ай бұрын
    • Thanks ❤️

      @sahilandsarra@sahilandsarra7 ай бұрын
  • how do you create graphics for videos? specifically looking for a animated donut or pie chart. suggestions?

    @abhijeetdey4800@abhijeetdey48007 ай бұрын
  • Please Sahil can you make a video on how to solve recursive problems. I'm finding it hard to understand recursive algorithm. 🙏

    @unyimeudoh1697@unyimeudoh16977 ай бұрын
  • Your content is soo aaawsome!!👌🏻... Trust me your videos not only gives me a good solution to my issues as a developer but also gives me motivation boost ❤️

    @abdulmalikYT_BGMI@abdulmalikYT_BGMI7 ай бұрын
    • Happy to hear that!

      @sahilandsarra@sahilandsarra7 ай бұрын
  • This video made my day ❤

    @Kaviarasu_NS@Kaviarasu_NS7 ай бұрын
    • ❤️

      @sahilandsarra@sahilandsarra7 ай бұрын
  • took me some thinking between both fast and slow brain to get to a bat costing $1.05 and a ball costing $0.05. When solving things with the fast brain, sometimes it takes one on a journey with their slow brain to make sure they got it right only to find oneself doubting self and repeat checking with the slow brain; only to confuse oneself! At least, that's what I experience when I try to do things my fast brain does with the slow brain!

    @duncancamilleri8614@duncancamilleri86143 күн бұрын
  • Thanks

    @srinivasa5650@srinivasa56507 ай бұрын
  • Cool Sahil 😃👍

    @horacioparraguirre7486@horacioparraguirre74864 ай бұрын
  • Much needed one! Thanks Sahil!

    @roshangeorge97@roshangeorge977 ай бұрын
  • To people like me : Let the cost of the ball be "B" in dollars. According to the information given, the bat costs $1 more than the ball, so the cost of the bat would be "B + $1." Now, we know that together, the bat and the ball cost $1.10. So, we can set up an equation: B + (B + $1) = $1.10 Combining like terms: 2B + $1 = $1.10 Subtract $1 from both sides of the equation: 2B = $0.10 Now, divide by 2: B = $0.10 / 2 = $0.05 So, the cost of the ball is $0.05 or 5 cents.

    @ravitejajinka8973@ravitejajinka89737 ай бұрын
  • I currently work as an L4 in Amazon, can you compare your experiences between Amazon and Google?

    @aznstride4325@aznstride43257 ай бұрын
  • This is underrated

    @Fordalo@Fordalo7 ай бұрын
  • Hi sir , just a small information , if we take certification for python and pandas and if we try for a job will we get good job , actually having experience of 7 years and trying to switch career to be in good start if I did certification and try for job and luckily if we got in service based company , can it be a good start as part of career switch so that we will keep on working and try for big companies after we habituated with python work culture ?? Please replay sir with your views really need your help on this sir. Or suggest any certification which will help us to boost career

    @manikantanallana5227@manikantanallana52277 ай бұрын
  • After watching this Video Who wants to learn DSA from Saahil 🙋🙋‍♀️?

    @Nutshell777@Nutshell7777 ай бұрын
  • ey techathon me submission kiya hai 15 ko aakhri din hai aurf kya better kr skte hai???

    @therandomdude8827@therandomdude88277 ай бұрын
  • *Moral of the Story* : Practice, Practice, Practice. Look for patterns in the way, and memorize those and apply them next time.

    @vasujhawar.6987@vasujhawar.69877 ай бұрын
  • I thought I knew how to program until I started doing let code 😂

    @SystemsAdventure@SystemsAdventure7 ай бұрын
  • Also please make a video on how to make our brain stop thinking about girls while in the middle of coding....

    @koushiken6641@koushiken66417 ай бұрын
  • Really Intuitive Video.....

    @vigneshs6232@vigneshs62327 ай бұрын
    • Thanks 🙏

      @sahilandsarra@sahilandsarra7 ай бұрын
  • Question, open to anyone, lets say the brain gets trained, interview is cracked and the job is offered as well, how often do engineers in FAANG companies actually come across these kind of challenges in their day to day life working in one of these companies? PS: I know a fperson who works in one of the FAANG and described codebase of one of their most popular product which gets offered to their customers where the class file seemed to contain over 1000 lines of code with single method averaging over 300 lines and no documentation

    @MilkaSingh-rt6zp@MilkaSingh-rt6zp6 күн бұрын
  • Sara and Sahil please make a couple vlog😅. please try add any travel or monthly vlog🫰🏻

    @abdulmalikYT_BGMI@abdulmalikYT_BGMI7 ай бұрын
  • Far out I'm stuck in this bat and ball analogy and after reading explanations in comments I still couldn't figure it out. Does that mean I can't be (or shouldn't be) a programmer?

    @fahdii4u@fahdii4u7 ай бұрын
    • Yes I'm thinking that too

      @abhishekpatra7954@abhishekpatra79547 ай бұрын
  • I have this book

    @amalpp-tp8ww@amalpp-tp8ww7 ай бұрын
  • Hard problems also involves applying some trick which is not always obvious.Average students can not think of them immediately. Can you please tell us how to think of such tricky problems.

    @shwetaj8189@shwetaj81897 ай бұрын
    • Just relax and enjoy the process don't think of it as a problem just think of it like a puzzle then you'll get your answers

      @hhandle@hhandle7 ай бұрын
    • I think that I am an average student but slowly reaching my there. What I used to do before I just used to look at problem and immediately decide whether I can or not but now I try to think more in depth and give sometime to the problem. and I would say it is totally fine to be wrong sometimes You just get to learn new things.

      @doomed5206@doomed52067 ай бұрын
  • The way you pronounce develop is really funny

    @MikeMcRoberts@MikeMcRoberts6 ай бұрын
  • I want to learn by myself from zero can i do it? 😅 it’s hard?!

    @lan1yaa_@lan1yaa_7 ай бұрын
  • @mrvickyvignesh4694@mrvickyvignesh46947 ай бұрын
  • If I want a road map on something this channel has I will recommend everyone subscribing very good❤❤

    @user-jc5rj7fm3n@user-jc5rj7fm3n7 ай бұрын
    • Thanks ❤️❤️

      @sahilandsarra@sahilandsarra7 ай бұрын
  • I just want people to understand, that to some people things WILL come more naturally than it will to others. And for a lot of people, no amount of hardwork will make you as good as the people to who it comes naturally. The faster you understand that and stop guilt tripping yourself, the better it will be for you and for your health. It doesn't make you worthless, it's just that you'll be useful in different roles than those people. And you can still do you part, but there might be somebody who'll be able to do the things you do faster, and in a way that you may never conceive. And you cannot learn that. The fast you realise that, the better it will be for you. Anybody that tells you that hardwork will make you as good as the person that it comes naturally to, is lying to you The only person you should compare yourself to is you. You can become better than you were. You can even be more productive than the genius. You can even produce better work than the genius, but you're not gonna be able to train yourself to become better at coming up with things that comes naturally to them.

    @jesseinfinite@jesseinfinite7 ай бұрын
    • The so called naturally gifted people just have the right framework which the hardworking people lack everyone is created equally but not everyone uses their full potential

      @hhandle@hhandle7 ай бұрын
    • @@hhandle no. Everyone is not created equal. Some people just have the innate ability to do certain things which others will have to work very hard to get to be able to do. And there's absolutely nothing you can do to change that.

      @jesseinfinite@jesseinfinite7 ай бұрын
    • ​@@jesseinfinitebut remember Hardwork beats talent

      @msddevotee9323@msddevotee93237 ай бұрын
    • @@msddevotee9323 sure, but that doesn't mean that talented people can't work hard lol.

      @jesseinfinite@jesseinfinite7 ай бұрын
  • How the answer is 5 cents?

    @_quizroom@_quizroomАй бұрын
  • u want believe sir i used to think that i am dumb my mental ability is low then i camee across this book and when i saw this on thumbnail i was like wow

    @aarchisardana9068@aarchisardana90687 ай бұрын
  • My brain is so slow even I couldn’t understand this video 😢

    @sbsafi4981@sbsafi49814 ай бұрын
  • First comment ❤❤😊

    @GORE-ez7up@GORE-ez7up7 ай бұрын
  • I got .10c as my answer :(

    @adnanyeasir7965@adnanyeasir79657 ай бұрын
  • 👍😀😘

    @VolodymyrInTech@VolodymyrInTech7 ай бұрын
  • It is very useful mu linde

    @mrvickyvignesh4694@mrvickyvignesh46947 ай бұрын
  • why 5 cents and not 9 cents? i cant understand.

    @adrwtr@adrwtr7 ай бұрын
    • It's 1 dollar high.. so both have same cents value (5 cents) + 1 dollar.

      @little_warrior_@little_warrior_7 ай бұрын
  • i have been coding since 5 months , almost done with dsa and solved around 106 problems on leetcode but still I cannot solve questions on my own , i have to refer the solution, is this normal?? or i m not very good at coding? i am a first year student

    @sach4539@sach45397 ай бұрын
    • You need to take on projects. Ones that you are passionate about. Only way for your brain connections to grow. Also exercise and walks in the park

      @keylanoslokj1806@keylanoslokj18067 ай бұрын
    • Hate to break it to you, but it's not, 5 months is a lot of time to solve just 106 problems. However if your are talking about 106 hard level leetcode problem, then it's awesome

      @SumitKumar-qg4ps@SumitKumar-qg4ps7 ай бұрын
    • I felt the same but I am improving. You will improve. Because I also thought I can never do exercises by myself. But now I am able to do some by my self. Just try and read the solutions to the codes and then familiarize yourself with the logic they used to solve those exercises.😊

      @SannaBS@SannaBS7 ай бұрын
    • I felt the same but I am improving. You will improve. Because I also thought I can never do exercises by myself. But now I am able to do some by my self. Just try and read the solutions to the codes and then familiarize yourself with the logic they used to solve those exercises.😊

      @SannaBS@SannaBS7 ай бұрын
    • In 1 month I solve 39 easy 9 medium & 1 hard 😅total 49 😂 with continue streak of 29

      @CodeNinja18@CodeNinja187 ай бұрын
  • Create tech-news videos

    @ajaylodhi9061@ajaylodhi90617 ай бұрын
  • Guys i want to learn DSA , anybody can suggest any books or U tube channels for Learning.

    @anisfathima3163@anisfathima31637 ай бұрын
    • Mycodeschool

      @hhandle@hhandle7 ай бұрын
  • I am solving problems on leetcode for 3 days , but i feel very struggling even on the easy questions i am able to think some of the approaches to solve a question but when it comes to code that solution i struggle a lot 😭 is it normal ? btw I'm learning dsa from 3 months I'm in my 3rd sem

    @SidhantKumar08@SidhantKumar087 ай бұрын
    • Well, rather than directly jumping to coding by yourself, analyze different codes for different problems that are available on different platforms. Make sure that you try to analyze why they have done a particular line of code that way. Do this for at least 15-20 days, by this way you'll build your confidence and you know the tricks as you have analyzed different codes. Taking your time is the key! Hope it helps. All the best!

      @charankoganti5764@charankoganti57647 ай бұрын
    • There are KZhead video where they solve leet questions

      @gokulnaththeboss08@gokulnaththeboss087 ай бұрын
    • Go through this, there are videos linking the solutions as well. takeuforward.org/strivers-a2z-dsa-course/strivers-a2z-dsa-course-sheet-2/

      @thatdumbguy2800@thatdumbguy28007 ай бұрын
    • Its normal bro . U have to practice more , experience more and do small and easy first

      @Web_Developer_007@Web_Developer_0072 ай бұрын
  • Fast Brain + Slow Brain = BRAIN Basically use your BRAIN . thank me later.

    @SahaSir-nl6mh@SahaSir-nl6mh6 ай бұрын
  • overall you say that we brake the problems into smaller part but just say the one line you upload a 8 minutes video.

    @rahulbiswas3551@rahulbiswas35517 ай бұрын
  • How can I learn new things faster

    @yolow8126@yolow81267 ай бұрын
    • By learning how to learn

      @hhandle@hhandle7 ай бұрын
    • Makes sense

      @yolow8126@yolow81267 ай бұрын
  • 0.05

    @tarunteja5575@tarunteja55757 ай бұрын
  • Pls tell how to die easily 🙏🙏

    @Mdd181@Mdd1817 ай бұрын
    • Stop eating

      @hhandle@hhandle7 ай бұрын
  • Help

    @amankumbhalwar@amankumbhalwar7 ай бұрын
  • I don't even understand bat and ball questions ❓ am i dumb 😭

    @salmanharis2129@salmanharis21296 ай бұрын
  • i am struggles a lot to solve one problem daily

    @lovebirds6629@lovebirds66297 ай бұрын
  • slow brain = aptitude solve aptitude puzzles on your own to train your slow brain.

    @piyush-A.I.-IIT@piyush-A.I.-IIT7 ай бұрын
  • Video on LinkedIn 😢

    @vamsikrishna2399@vamsikrishna23997 ай бұрын
  • Rest 5 cents kya hai tax 😅

    @sambeetburma6108@sambeetburma61087 ай бұрын
  • can anyone please explain the bat and ball problem? sorry I didn't get it

    @shivamrishinarayansingh1656@shivamrishinarayansingh16567 ай бұрын
    • The bat is $1 plus the cost of the ball. The total is the cost of the bat + the cost of the ball. So the total is $1 + the cost two balls. The cost of the ball is then ($1.10 -$1)/2.

      @greenjacket6305@greenjacket63057 ай бұрын
    • ​@@greenjacket6305why are we dividing by 2? Where is second ball came from. Statement mentions only one ball

      @muhammadsaadmasood5762@muhammadsaadmasood57627 ай бұрын
    • Bat +ball = $ 1.10 & Bat - Ball = $1, now subtracting both equation Bat + Ball -(Bat - Ball) = 1.10 -1, 2Ball = .10, therefore 1 Ball = .5 cent

      @nagrajsingh8437@nagrajsingh84377 ай бұрын
    • @@nagrajsingh8437 buddy now I am more confused your solution doesn't work for me. And the question say a ball so i thought there will be 1 ball. Please correct me if I am wrong

      @shivamrishinarayansingh1656@shivamrishinarayansingh16567 ай бұрын
    • The problem states that sum of bat price and ball price is $1.10. Also, cost of bat price is 1 dollar more than that of ball price. Find the ball price. Let ball price be x; Bat price = 1 + x; Bat price + ball price = $1.10 (given) //putting values (1 + x) + x = 1.10; 2x = 1.10 - 1 = 0.10; x = 0.10/2 = 0.05; Hence ball price is 5 cent. Hope you got it 😇

      @miyu8235@miyu82357 ай бұрын
  • now we are copying ai

    @bappadityabera1959@bappadityabera19592 ай бұрын
  • Obviously slow

    @user-dy8ig3pq9w@user-dy8ig3pq9w7 ай бұрын
  • Thanks for wasting my time

    @salmankhader1258@salmankhader12587 ай бұрын
  • Clickbait! Dislike

    @ottomen2712@ottomen27127 ай бұрын
  • bro don't attach your pic in your LinkedIn post for no reasons, that's too cringe thing to do. I had to unfollow becuz of that shitt

    @KingKong-yj3nn@KingKong-yj3nnАй бұрын
  • Still now my slow brain hasn't figured out the reason for that bat and ball questions 🥲

    @abhijith_mr@abhijith_mr7 ай бұрын
    • bat cost is more than $1 from ball ,that means ball cost + 1$ = bat cost. means 5 cent (ball) + 5 cent & 1 $ (bat) =1.10$

      @masudranadipu6915@masudranadipu69157 ай бұрын
    • X = Bat and Y = Ball x+y = 1.10 x-y = 1 it means x = 1+y (1+y) + y = 1.10 1+2y = 1.10 2y = 1.10-1 y = 0.10/2 y = 0.5 Ball cost = 5 Cents

      @puneetgared@puneetgared7 ай бұрын
    • ​@@puneetgaredlol such a tricky questions 😂

      @muhammadsaadmasood5762@muhammadsaadmasood57627 ай бұрын
    • ​@@puneetgaredactually the statement is not correct and misleading to wrong answers if you listen closely..... slow brain says it

      @muhammadsaadmasood5762@muhammadsaadmasood57627 ай бұрын
KZhead