How I make HARD coding problems look EASY

Sdílet
Vložit
  • čas přidán 6. 10. 2023
  • 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.
  • Věda a technologie

Komentáře • 138

  • @VijayKumar-dn4pz
    @VijayKumar-dn4pz Před 7 měsíci +19

    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!

  • @aldoaguirre9864
    @aldoaguirre9864 Před 7 měsíci +1

    thank you so much for this!

  • @AbhishekThakur-bw6co
    @AbhishekThakur-bw6co Před 7 měsíci +2

    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 ❤

  • @GB-su9gu
    @GB-su9gu Před 7 měsíci

    Thank you for sharing ❤
    Sahil.😊

  • @ashwinalagundi9271
    @ashwinalagundi9271 Před měsícem +1

    Nice explanation. It's true we need to use both fast and slow brain.

  • @jatinnandwani6678
    @jatinnandwani6678 Před 7 měsíci

    Combination of fast brain and slow brain
    Thanks so much for this

  • @acecool1715
    @acecool1715 Před 7 měsíci

    Thank you for sharing.

  • @joydebnath2658
    @joydebnath2658 Před 7 měsíci

    Your voice is my Impulsions. Take lv dear vya💗

  • @haha-eg8fj
    @haha-eg8fj Před 5 měsíci

    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.

  • @nirajbhuvad9440
    @nirajbhuvad9440 Před 7 měsíci +2

    Hey can you give us a info about software testing and it's survival ratio in future. Thanks

  • @DeltaXML_Ltd
    @DeltaXML_Ltd Před 7 měsíci

    Fantastic, useful video!

  • @abdulmalikYT_BGMI
    @abdulmalikYT_BGMI Před 7 měsíci +5

    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 ❤️

  • @markchoorakat2313
    @markchoorakat2313 Před 7 měsíci +2

    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

  • @fabianfrankwerner
    @fabianfrankwerner Před 7 měsíci +6

    👋 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.

    • @AliinNITW
      @AliinNITW Před 2 měsíci

      Now no need to watch video thanks 😂

  • @almousafir4041
    @almousafir4041 Před 7 měsíci +6

    Excellent partage ❤ Big like 351❤❤

  • @abhijeetdey4800
    @abhijeetdey4800 Před 7 měsíci

    how do you create graphics for videos? specifically looking for a animated donut or pie chart. suggestions?

  • @unyimeudoh1697
    @unyimeudoh1697 Před 7 měsíci +1

    Please Sahil can you make a video on how to solve recursive problems. I'm finding it hard to understand recursive algorithm. 🙏

  • @Holfter
    @Holfter Před 7 měsíci +74

    I think my brain is thinking super slow, I couldn't even understand the bat and ball thing 🤣

    • @mayurrajput8408
      @mayurrajput8408 Před 7 měsíci +4

      Same bro😂😂

    • @vigneshbabu9382
      @vigneshbabu9382 Před 7 měsíci +10

      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.

    • @PraveenFullStack
      @PraveenFullStack Před 7 měsíci +1

      ​@@vigneshbabu9382but ball costs 5 cents 🙄

    • @BrainRainGoAway
      @BrainRainGoAway Před 7 měsíci +15

      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.

    • @pranavpatil398
      @pranavpatil398 Před 7 měsíci +6

      Same bro mine is working even more slower that i can't even understand these solutions 😂

  • @Kaviarasu_NS
    @Kaviarasu_NS Před 7 měsíci +1

    This video made my day ❤

  • @mohan_max2783
    @mohan_max2783 Před 7 měsíci +2

    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.

  • @toughmanful
    @toughmanful Před 7 měsíci

    Amazing video

  • @Krishna.369.
    @Krishna.369. Před 7 měsíci

    Much needed and awaited video ❤

  • @aznstride4325
    @aznstride4325 Před 7 měsíci +1

    I currently work as an L4 in Amazon, can you compare your experiences between Amazon and Google?

  • @Fordalo
    @Fordalo Před 7 měsíci

    This is underrated

  • @srinivasa5650
    @srinivasa5650 Před 7 měsíci

    Thanks

  • @techie544
    @techie544 Před 7 měsíci

    Saw that bat and ball cost example in one of your videos. Good to hear it again..

  • @vedparkashgaba5478
    @vedparkashgaba5478 Před 7 měsíci

    Awesome video thanks for sharing

  • @vasujhawar.6987
    @vasujhawar.6987 Před 7 měsíci +1

    *Moral of the Story* : Practice, Practice, Practice. Look for patterns in the way, and memorize those and apply them next time.

  • @manikantanallana5227
    @manikantanallana5227 Před 7 měsíci

    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

  • @ravitejajinka8973
    @ravitejajinka8973 Před 7 měsíci +8

    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.

  • @therandomdude8827
    @therandomdude8827 Před 7 měsíci

    ey techathon me submission kiya hai 15 ko aakhri din hai aurf kya better kr skte hai???

  • @roshangeorge97
    @roshangeorge97 Před 7 měsíci +2

    Much needed one! Thanks Sahil!

  • @Nutshell777
    @Nutshell777 Před 7 měsíci +4

    After watching this Video Who wants to learn DSA from Saahil 🙋🙋‍♀️?

  • @SystemsAdventure
    @SystemsAdventure Před 7 měsíci +1

    I thought I knew how to program until I started doing let code 😂

  • @horacioparraguirre7486
    @horacioparraguirre7486 Před 4 měsíci

    Cool Sahil 😃👍

  • @abdulmalikYT_BGMI
    @abdulmalikYT_BGMI Před 7 měsíci

    Sara and Sahil please make a couple vlog😅.
    please try add any travel or monthly vlog🫰🏻

  • @koushiken6641
    @koushiken6641 Před 6 měsíci +1

    Also please make a video on how to make our brain stop thinking about girls while in the middle of coding....

  • @amalpp-tp8ww
    @amalpp-tp8ww Před 7 měsíci

    I have this book

  • @fahdii4u
    @fahdii4u Před 7 měsíci

    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?

  • @shwetaj8189
    @shwetaj8189 Před 7 měsíci +1

    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.

    • @hhandle
      @hhandle Před 7 měsíci

      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

    • @doomed5206
      @doomed5206 Před 7 měsíci +1

      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.

  • @MikeMcRoberts
    @MikeMcRoberts Před 6 měsíci

    The way you pronounce develop is really funny

  • @lan1yaa_
    @lan1yaa_ Před 7 měsíci

    I want to learn by myself from zero can i do it? 😅 it’s hard?!

  • @mrvickyvignesh4694
    @mrvickyvignesh4694 Před 7 měsíci

  • @_quizroom
    @_quizroom Před měsícem

    How the answer is 5 cents?

  • @adnanyeasir7965
    @adnanyeasir7965 Před 7 měsíci +2

    I got .10c as my answer :(

  • @vigneshs6232
    @vigneshs6232 Před 7 měsíci +1

    Really Intuitive Video.....

  • @jesseinfinite
    @jesseinfinite Před 7 měsíci +2

    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.

    • @hhandle
      @hhandle Před 7 měsíci

      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

    • @jesseinfinite
      @jesseinfinite Před 7 měsíci

      @@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.

    • @msddevotee9323
      @msddevotee9323 Před 7 měsíci

      ​@@jesseinfinitebut remember Hardwork beats talent

    • @jesseinfinite
      @jesseinfinite Před 7 měsíci

      @@msddevotee9323 sure, but that doesn't mean that talented people can't work hard lol.

  • @adrwtr
    @adrwtr Před 7 měsíci +2

    why 5 cents and not 9 cents? i cant understand.

    • @little_warrior_
      @little_warrior_ Před 7 měsíci

      It's 1 dollar high.. so both have same cents value (5 cents) + 1 dollar.

  • @user-jc5rj7fm3n
    @user-jc5rj7fm3n Před 7 měsíci +5

    If I want a road map on something this channel has I will recommend everyone subscribing very good❤❤

  • @aarchisardana9068
    @aarchisardana9068 Před 7 měsíci

    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

  • @yolow8126
    @yolow8126 Před 7 měsíci

    How can I learn new things faster

    • @hhandle
      @hhandle Před 7 měsíci +1

      By learning how to learn

    • @yolow8126
      @yolow8126 Před 7 měsíci

      Makes sense

  • @anisfathima3163
    @anisfathima3163 Před 7 měsíci

    Guys i want to learn DSA , anybody can suggest any books or U tube channels for Learning.

  • @GORE-ez7up
    @GORE-ez7up Před 7 měsíci +1

    First comment ❤❤😊

  • @VolodymyrInTech
    @VolodymyrInTech Před 7 měsíci

    👍😀😘

  • @sbsafi4981
    @sbsafi4981 Před 4 měsíci

    My brain is so slow even I couldn’t understand this video 😢

  • @sach4539
    @sach4539 Před 7 měsíci +2

    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

    • @keylanoslokj1806
      @keylanoslokj1806 Před 7 měsíci +1

      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

    • @SumitKumar-qg4ps
      @SumitKumar-qg4ps Před 7 měsíci +1

      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

    • @SannaBS
      @SannaBS Před 7 měsíci

      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
      @SannaBS Před 7 měsíci +1

      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.😊

    • @CodeNinja18
      @CodeNinja18 Před 7 měsíci +1

      In 1 month I solve 39 easy 9 medium & 1 hard 😅total 49 😂 with continue streak of 29

  • @Mdd181
    @Mdd181 Před 7 měsíci +1

    Pls tell how to die easily 🙏🙏

  • @ajaylodhi9061
    @ajaylodhi9061 Před 7 měsíci

    Create tech-news videos

  • @rahulbiswas3551
    @rahulbiswas3551 Před 7 měsíci

    overall you say that we brake the problems into smaller part but just say the one line you upload a 8 minutes video.

  • @tarunteja5575
    @tarunteja5575 Před 7 měsíci

    0.05

  • @amankumbhalwar
    @amankumbhalwar Před 7 měsíci

    Help

  • @SahaSir-nl6mh
    @SahaSir-nl6mh Před 6 měsíci

    Fast Brain + Slow Brain = BRAIN
    Basically use your BRAIN .
    thank me later.

  • @SidhantKumar08
    @SidhantKumar08 Před 7 měsíci +9

    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

    • @charankoganti5764
      @charankoganti5764 Před 7 měsíci +9

      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!

    • @gokulnaththeboss08
      @gokulnaththeboss08 Před 7 měsíci

      There are CZcams video where they solve leet questions

    • @thatdumbguy2800
      @thatdumbguy2800 Před 6 měsíci

      Go through this, there are videos linking the solutions as well.
      takeuforward.org/strivers-a2z-dsa-course/strivers-a2z-dsa-course-sheet-2/

    • @Web_Developer_007
      @Web_Developer_007 Před měsícem

      Its normal bro . U have to practice more , experience more and do small and easy first

  • @mrvickyvignesh4694
    @mrvickyvignesh4694 Před 7 měsíci

    It is very useful mu linde

  • @vamsikrishna2399
    @vamsikrishna2399 Před 7 měsíci

    Video on LinkedIn 😢

  • @lovebirds6629
    @lovebirds6629 Před 7 měsíci +2

    i am struggles a lot to solve one problem daily

  • @piyush-A.I.-IIT
    @piyush-A.I.-IIT Před 7 měsíci

    slow brain = aptitude
    solve aptitude puzzles on your own to train your slow brain.

  • @salmanharis2129
    @salmanharis2129 Před 6 měsíci

    I don't even understand bat and ball questions ❓ am i dumb 😭

  • @sambeetburma6108
    @sambeetburma6108 Před 7 měsíci

    Rest 5 cents kya hai tax 😅

  • @bappadityabera1959
    @bappadityabera1959 Před měsícem

    now we are copying ai

  • @shivamrishinarayansingh1656
    @shivamrishinarayansingh1656 Před 7 měsíci +1

    can anyone please explain the bat and ball problem? sorry I didn't get it

    • @greenjacket6305
      @greenjacket6305 Před 7 měsíci

      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.

    • @muhammadsaadmasood5762
      @muhammadsaadmasood5762 Před 7 měsíci +2

      ​@@greenjacket6305why are we dividing by 2? Where is second ball came from. Statement mentions only one ball

    • @nagrajsingh8437
      @nagrajsingh8437 Před 7 měsíci

      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

    • @shivamrishinarayansingh1656
      @shivamrishinarayansingh1656 Před 7 měsíci +1

      @@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

    • @miyu8235
      @miyu8235 Před 7 měsíci

      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 😇

  • @user-dy8ig3pq9w
    @user-dy8ig3pq9w Před 7 měsíci

    Obviously slow

  • @salmankhader1258
    @salmankhader1258 Před 7 měsíci

    Thanks for wasting my time

  • @ottomen2712
    @ottomen2712 Před 7 měsíci +2

    Clickbait! Dislike

  • @KingKong-yj3nn
    @KingKong-yj3nn Před měsícem

    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

  • @abhijith_mr
    @abhijith_mr Před 7 měsíci +1

    Still now my slow brain hasn't figured out the reason for that bat and ball questions 🥲

    • @masudranadipu6915
      @masudranadipu6915 Před 7 měsíci +1

      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$

    • @puneetgared
      @puneetgared Před 7 měsíci +4

      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

    • @muhammadsaadmasood5762
      @muhammadsaadmasood5762 Před 7 měsíci

      ​@@puneetgaredlol such a tricky questions 😂

    • @muhammadsaadmasood5762
      @muhammadsaadmasood5762 Před 7 měsíci

      ​@@puneetgaredactually the statement is not correct and misleading to wrong answers if you listen closely..... slow brain says it