Maximum Employees to Be Invited to a Meeting | Leetcode 2127

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ก.พ. 2025

ความคิดเห็น • 48

  • @freecourseplatformenglish2829
    @freecourseplatformenglish2829 8 วันที่ผ่านมา +3

    Thanks man, I am out of words to appreciate your efforts and explaination.

    • @techdose4u
      @techdose4u  8 วันที่ผ่านมา +1

      🙏🏼

  • @moyezrabbani637
    @moyezrabbani637 9 วันที่ผ่านมา +5

    This is absolute perfection.
    I can't fathom how you solved the problem yourself.

    • @techdose4u
      @techdose4u  9 วันที่ผ่านมา

      i had solved with kosaraju but changed to topological sort for explanation :)

    • @shauryasinghal-dt1qg
      @shauryasinghal-dt1qg 9 วันที่ผ่านมา

      ​@@techdose4u, you created condensed graph and then from condensed node, find largest depth after graph reversal?

  • @AbhisarMohapatra
    @AbhisarMohapatra 9 วันที่ผ่านมา +8

    One of the toughest problems but increases logical thinking

    • @techdose4u
      @techdose4u  9 วันที่ผ่านมา

      for sure. I enjoyed this too ❤️

  • @VISHALMISHRA-ff2ih
    @VISHALMISHRA-ff2ih 8 วันที่ผ่านมา +1

    I always enjoy your way of solving the Problem. The way you approaches the solution by breaking it is just an absolute masterclass. Very nice explanation.

    • @techdose4u
      @techdose4u  8 วันที่ผ่านมา

      Thanks for your consistent appreciation 🙏🏼

  • @nayankhanna2367
    @nayankhanna2367 8 วันที่ผ่านมา +1

    You know it's a REALLY HARD question when Techdose's solution video is 52 minutes long!

    • @techdose4u
      @techdose4u  8 วันที่ผ่านมา

      True :o

  • @Anikait-h3d
    @Anikait-h3d 8 วันที่ผ่านมา

    coming up with such solution is nothing but respect. CRAZY. i thought normal bfs would work but the couple wala is such a big messs

    • @techdose4u
      @techdose4u  8 วันที่ผ่านมา

      yea true

  • @SumanDas-fx5vu
    @SumanDas-fx5vu 9 วันที่ผ่านมา +1

    🙏🙏🙏 Thank You Sir, best video for this problem.

    • @techdose4u
      @techdose4u  9 วันที่ผ่านมา

      🙏🏼

  • @rajavignesh7216
    @rajavignesh7216 9 วันที่ผ่านมา +3

    Never thought a solution for leetcode problem goes 100+ lines 😮

    • @techdose4u
      @techdose4u  9 วันที่ผ่านมา

      There will be one line masters still for this question on leetcode :)

  • @anshikaanand6042
    @anshikaanand6042 9 วันที่ผ่านมา +2

    One of the toughest problems in leetcode.

    • @techdose4u
      @techdose4u  9 วันที่ผ่านมา +1

      definitely

  • @chirayusharma8630
    @chirayusharma8630 7 วันที่ผ่านมา

    thank you

    • @techdose4u
      @techdose4u  7 วันที่ผ่านมา

      Welcome

  • @tejaschavan007
    @tejaschavan007 9 วันที่ผ่านมา +1

    OG sir🙇‍♂

    • @techdose4u
      @techdose4u  9 วันที่ผ่านมา

      Hope you enjoyed the LOOOONG problem analysis 🤣

  • @rajGg-h3g
    @rajGg-h3g 9 วันที่ผ่านมา +1

    Hard to go to right direction 😎

    • @techdose4u
      @techdose4u  9 วันที่ผ่านมา +1

      Now the direction is set :)

  • @shivnathkahar8985
    @shivnathkahar8985 9 วันที่ผ่านมา +1

    Very nice explanation

    • @techdose4u
      @techdose4u  9 วันที่ผ่านมา

      thanks :)

  • @apurvpatel2962
    @apurvpatel2962 8 วันที่ผ่านมา +1

    Techdose explanations >>>>>>>>>>>>>>>> Neetcode

    • @techdose4u
      @techdose4u  8 วันที่ผ่านมา

      By God’s grace 🙏🏼

  • @sravya6686
    @sravya6686 5 วันที่ผ่านมา

    While performing kahns algorithm for the example, our toposort will break at 2 because of indegree due to 7 although it is not part of cycle. How to handle this case

    • @techdose4u
      @techdose4u  5 วันที่ผ่านมา

      it will be handled becoz when we stop we will check if it is a cycle of len 2 which it will say false.
      we dont care if it is actually a cycle :)
      So, it will work fine.

    • @sravya6686
      @sravya6686 4 วันที่ผ่านมา

      Yeah, understood it after watching the video again. Thanks a lot for these great explanations.

  • @shivamsinghnegi1192
    @shivamsinghnegi1192 9 วันที่ผ่านมา +1

    If after solving this, the companies ask for any technical rounds.... i will ghost them.

    • @techdose4u
      @techdose4u  9 วันที่ผ่านมา

      🤣🤣

  • @VivekS-q2j
    @VivekS-q2j 9 วันที่ผ่านมา

    Like how we know this type of d/f algo kosaraju there will be lot of d/f how to rememeber it all.

    • @techdose4u
      @techdose4u  9 วันที่ผ่านมา

      Need to know them and practice.
      Like how you sort using Insertion sort and Heap Sort.
      Both does the same thing with different data structures and algorithms :)
      Here, cycle detection and its size was main. Similar to strongly connected components.

    • @VivekS-q2j
      @VivekS-q2j 9 วันที่ผ่านมา

      @@techdose4u This is first time i have seen new algorithm like this type how to explore algorithm all d/f kinds.

  • @godFather-123-b8g
    @godFather-123-b8g 9 วันที่ผ่านมา

    nice

  • @ELBOwais
    @ELBOwais 9 วันที่ผ่านมา

    Why tail of one side is evaluated only while in explanation both side tail lenght is considered in 2 length cycle

    • @techdose4u
      @techdose4u  9 วันที่ผ่านมา

      Both side are taken.
      It is evaluated in a for loop.
      So the nodes will be considered separately.

  • @ompawar9791
    @ompawar9791 9 วันที่ผ่านมา +2

    how you
    able to solve this question ....

    • @techdose4u
      @techdose4u  9 วันที่ผ่านมา +5

      with patience and experience :)

  • @Anikait-h3d
    @Anikait-h3d 5 วันที่ผ่านมา

    87/98 test cases are passing and getting TLE. pls help

    • @techdose4u
      @techdose4u  5 วันที่ผ่านมา

      which soln ?

    • @Anikait-h3d
      @Anikait-h3d 5 วันที่ผ่านมา

      @@techdose4u my code. can i mail it to you?

  • @sailendrachettri8521
    @sailendrachettri8521 9 วันที่ผ่านมา