Factorial of Large Numbers🔥🔥 | Array | Amazon | Flipkart | Love Babbar DSA Sheet | Hindi

Sdílet
Vložit
  • čas přidán 27. 07. 2024
  • Time Stamps :
    Problem discussion : 0:00
    Approaching the problem : 03:00
    Dry Run Algorithm : 04:30
    Algorithm discussion : 07:10
    Code explanation : 13:10
    Time Complexity : O(n)
    Space Complexity : O(d) where d is number of digits in factorial of n
    Problem Link :www.geeksforgeeks.org/factori...
    C++ Code Link : github.com/Ayu-99/Love-Babbar...
    Love Babbar DSA Sheet : drive.google.com/file/d/1FMdN...
    Please like, share and subscribe if you found the video useful. Feel free to ask in comments section if you have any doubts. :)
    #DataStructuresAndAlgorithms
    #LoveBabbarDSASheet
    #interviewpreparation
    Factorial of Large Numbers solution
    Factorial of Large Numbers Leetcode
    Factorial of Large Numbers C++
    Factorial of Large Numbers C++ Hindi
    Factorial of Large Numbers Hindi
    Checkout the series: 🔥🔥🔥
    👉 Array: • Arrays
    👉 Recursion : • Recursion
    👉 Stack and Queue : • Stack And Queue
    👉 Greedy : • Greedy
    👉 Leetcode contests : • Leetcode contests
    👉 Leetcode June Challenge : • Leetcode June Challenge
    👉 Leetcode July Challenge : • Leetcode July Challenge
    LIKE | SHARE | SUBSCRIBE 🔥🔥😊

Komentáře • 48

  • @arg5
    @arg5 Před 11 měsíci +2

    What an explanation 🤯!!! , Willing to see your more videos on similar topics 👌🏻🙌🏻

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

    LIterally thanks yarrr. your explanations really very good ...really thanks yarr

  • @mayanksharma9827
    @mayanksharma9827 Před 3 lety +4

    Thank thanks thanks a lot of thanks mam☺️

  • @shubhamgupta5819
    @shubhamgupta5819 Před 3 lety

    yrr.. tum to best ho👍
    abhi linked list start nhi kri mne.. but explanation was so clean.. samajh to aa gya😌

  • @nityagopalsaha1715
    @nityagopalsaha1715 Před 2 lety

    Lovely explanation maam,maaza agaya approach mein.

  • @rohandevaki4349
    @rohandevaki4349 Před 2 lety +2

    at 11:58, how will you print 120 ? if prev is pointing to the last node itself and how will you visit the next node?

  • @rajarshimandal3235
    @rajarshimandal3235 Před 2 lety +1

    Thank u mam got the idea

  • @mythros7390
    @mythros7390 Před rokem

    Thank You

  • @rupalacharyya4606
    @rupalacharyya4606 Před 2 lety

    Greatttt Work!!!!

  • @dhanashreegodase4445
    @dhanashreegodase4445 Před 2 lety

    thanks a lot ayushi

  • @pyq_previous_year_questions

    Your voice is awesome
    And thanks 🙏

  • @Healthylifestyle924
    @Healthylifestyle924 Před 2 lety

    Ayushi ma'am nice explanation.

  • @maddycoder1294
    @maddycoder1294 Před 2 lety

    very nice explaination di

  • @stylewithsmriti
    @stylewithsmriti Před 2 lety

    What would be the time complexity of this approach? Loved the explanation tho! :)

  • @kvdmt2401
    @kvdmt2401 Před 2 lety +1

    Nice Explanation

    • @AyushiSharmaDSA
      @AyushiSharmaDSA  Před 2 lety +1

      Thank you. Glad you liked it :)

    • @kvdmt2401
      @kvdmt2401 Před 2 lety

      @@AyushiSharmaDSA I subscribed your channel after seeing your linked post yesterday :)

    • @kvdmt2401
      @kvdmt2401 Před 2 lety

      @@AyushiSharmaDSA waiting for backtracking videos

    • @AyushiSharmaDSA
      @AyushiSharmaDSA  Před 2 lety

      @@kvdmt2401 thank you :)

  • @RAUSHANKUMAR-iq4yj
    @RAUSHANKUMAR-iq4yj Před 2 lety

    Thanks❤🌹🙏

  • @utkarsh_108
    @utkarsh_108 Před 2 lety +3

    if you use vector data structure it would be much better. still, nice approach

  • @_ratneshMaurya
    @_ratneshMaurya Před 2 lety +1

    we know that we are storing the unit digit in every node, then it is sure that we will always have carry

    • @brahmkaransingh8804
      @brahmkaransingh8804 Před 2 lety

      Suppose if your N = 1000 and the last node (whose prev is null) is having value 2 so you will multiply 1000 by 2 and will get 2000 and you will store 0 (2000%10) and you will get carry as 200 . Now you cannot insert 200 in one node itself. That's why she is breaking the carry

  • @ajeetbharati6948
    @ajeetbharati6948 Před 2 lety

    Hello Ayushi mam,
    You explain very well any type of problem in my point of view you should not be a software engineer you should be a mathematics teacher.

    • @AyushiSharmaDSA
      @AyushiSharmaDSA  Před 2 lety

      😅😅 thanks Ajeet😊

    • @ajeetbharati6948
      @ajeetbharati6948 Před 2 lety

      @@AyushiSharmaDSA Mam, if you solve the questions that Love Babbar sir has prepared, will we get placement?

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

    Please mention time and space

  • @rohandevaki4349
    @rohandevaki4349 Před 2 lety

    this code is giving wrong test case result for the first test case of 802

  • @prashantpundir7448
    @prashantpundir7448 Před 2 lety

    jhaa aapne null likhaa hai vhaa pe 100 aanaa cheeye thaa and vice versa

  • @tusharnain6652
    @tusharnain6652 Před 2 lety

    I have a question. In python, the integer datatype automatically expand it's limit and can store the factorial of large number. Is it allowed to use this method of python to use in interviews, etc. Thanks in advanced.

    • @AyushiSharmaDSA
      @AyushiSharmaDSA  Před 2 lety +1

      Yes Tushar, I think we can, never asked not to use in interviews to me :)

    • @tusharnain6652
      @tusharnain6652 Před 2 lety +1

      @@AyushiSharmaDSA Ohkk, thank you!

  • @jatingandhi7663
    @jatingandhi7663 Před 2 lety

    Aapne programming kha se sikhi main competitive programming ki tyaari kr rha hu

  • @mallivlogs9426
    @mallivlogs9426 Před 2 lety +1

    Wrost explanation