Time Complexity Infinity
Time Complexity Infinity
  • 23
  • 166 683
LeetCode 49 - Group Anagrams
if you like this video checkout my playlist:
th-cam.com/video/2EcL4EoUSkc/w-d-xo.html
มุมมอง: 2 023

วีดีโอ

LeetCode 39 - Combination Sum
มุมมอง 15K5 ปีที่แล้ว
if you like this video check out my playlist... th-cam.com/video/2EcL4EoUSkc/w-d-xo.html
LeetCode 53 - Maximum Subarray
มุมมอง 2.8K5 ปีที่แล้ว
if you liked this video checkout my playlist... th-cam.com/video/2EcL4EoUSkc/w-d-xo.html
LeetCode 46 - Permutations
มุมมอง 78K5 ปีที่แล้ว
If you liked this video check out my playlist... th-cam.com/play/PLoxqw4ml-llJLmNbo40vWSe1NQUlOw0U0.html
LeetCode 42 - Trapping Rain Water
มุมมอง 4.9K5 ปีที่แล้ว
If you like this video check out my playlist. th-cam.com/play/PLoxqw4ml-llJLmNbo40vWSe1NQUlOw0U0.html
LeetCode 48 - Rotate Image
มุมมอง 4K5 ปีที่แล้ว
If you like this video check out my playlist. th-cam.com/play/PLoxqw4ml-llJLmNbo40vWSe1NQUlOw0U0.html
LeetCode 34 - Find First and Last Position of Element in Sorted Array
มุมมอง 1.2K5 ปีที่แล้ว
If you like this video check out this link to my playlist. th-cam.com/play/PLoxqw4ml-llJLmNbo40vWSe1NQUlOw0U0.html
LeetCode 33 - Search In Rotated Sorted Array
มุมมอง 1.6K5 ปีที่แล้ว
If you like this video and want to learn more algorithms checkout my playlist. th-cam.com/users/playlist?list...
LeetCode 32 - Longest Valid Parenthesis
มุมมอง 18K5 ปีที่แล้ว
If you like this video and want to learn more algorithms checkout my playlist. th-cam.com/play/PLoxqw4ml-llJLmNbo40vWSe1NQUlOw0U0.html
LeetCode 31 - Next Permutation
มุมมอง 4.7K5 ปีที่แล้ว
If you liked this video please checkout my playlist for more algo practice. th-cam.com/play/PLoxqw4ml-llJLmNbo40vWSe1NQUlOw0U0.html
LeetCode 22 - Generate Parenthesis
มุมมอง 4.3K5 ปีที่แล้ว
Here is a link to my playlist where I am going through the Leetcode top 100 liked questions. th-cam.com/play/PLoxqw4ml-llJLmNbo40vWSe1NQUlOw0U0.html
LeetCode 23 - Merge K Sorted Lists
มุมมอง 1.9K5 ปีที่แล้ว
LeetCode 23 - Merge K Sorted Lists
LeetCode 21 - Merge Two Sorted Lists
มุมมอง 3605 ปีที่แล้ว
LeetCode 21 - Merge Two Sorted Lists
LeetCode 20 - Valid Parentheses
มุมมอง 3775 ปีที่แล้ว
LeetCode 20 - Valid Parentheses
LeetCode 19 - Remove Nth Node From End
มุมมอง 5095 ปีที่แล้ว
LeetCode 19 - Remove Nth Node From End
LeetCode 15 - Three Sum No Duplicates
มุมมอง 7635 ปีที่แล้ว
LeetCode 15 - Three Sum No Duplicates
LeetCode 17 - Letter Combinations of a Phone Number
มุมมอง 2.3K5 ปีที่แล้ว
LeetCode 17 - Letter Combinations of a Phone Number
LeetCode 11 - Container With Most Water
มุมมอง 1.2K5 ปีที่แล้ว
LeetCode 11 - Container With Most Water
LeetCode 5 - Longest Palindromic Subtring
มุมมอง 12K5 ปีที่แล้ว
LeetCode 5 - Longest Palindromic Subtring
LeetCode 4 - Median Two Sorted Arrays
มุมมอง 2.2K5 ปีที่แล้ว
LeetCode 4 - Median Two Sorted Arrays
LeetCode 3 - Longest Substring Without Repeating Characters
มุมมอง 6K5 ปีที่แล้ว
LeetCode 3 - Longest Substring Without Repeating Characters
LeetCode 2 - Add Two Numbers
มุมมอง 6105 ปีที่แล้ว
LeetCode 2 - Add Two Numbers
LeetCode 1 - Two Sum
มุมมอง 2.2K6 ปีที่แล้ว
LeetCode 1 - Two Sum

ความคิดเห็น

  • @brobro8471
    @brobro8471 2 หลายเดือนก่อน

    Solution : 1. Add all of the opens, then add all of the closes. This produces the first combination. 2. Remove characters from the string until we find an opening parenthesis. Remove the opening parenthesis and check whether close < open. 3. If close < open, add a closing parenthesis to the string. Next, add the remaining opens, then add the remaining closes. Repeat step 2. If close >= open, repeat step 2

  • @lamaalnajjar1003
    @lamaalnajjar1003 8 หลายเดือนก่อน

    great explanation !

  • @zukoric
    @zukoric 10 หลายเดือนก่อน

    Great job, nobody explains like you do on YT

  • @karanchandramandi1967
    @karanchandramandi1967 10 หลายเดือนก่อน

    Thanks man for explaining that recursive tree as well as code explanation.

  • @udaykulkarni5639
    @udaykulkarni5639 ปีที่แล้ว

    Woww!! M gonna remember this for the rest of my life!

  • @tirthshah8550
    @tirthshah8550 ปีที่แล้ว

    What is the space complexity for this

  • @StyleTrick
    @StyleTrick ปีที่แล้ว

    Great solution and thinking, thanks!

  • @aniruddhashahapurkar9244
    @aniruddhashahapurkar9244 ปีที่แล้ว

    Best explanation!!

  • @效应多普勒
    @效应多普勒 ปีที่แล้ว

    Wow, truly the best explanation of this topic

  • @sophiaj6810
    @sophiaj6810 ปีที่แล้ว

    It would be nice if you have java and python verison.

  • @vijayakumareyunni6010
    @vijayakumareyunni6010 ปีที่แล้ว

    Good explanation. Thank you

  • @arrows8367
    @arrows8367 ปีที่แล้ว

    An excellent teacher ❤

  • @prakashgatiyala9869
    @prakashgatiyala9869 ปีที่แล้ว

    😇

  • @joseulissescastro4883
    @joseulissescastro4883 ปีที่แล้ว

    That was the only video that helped me to really understand what happens in a backtracking solution. Thank you sir

  • @saelkhlouf1695
    @saelkhlouf1695 ปีที่แล้ว

    Man you are a life saver !

  • @010101dddm
    @010101dddm ปีที่แล้ว

    best explanation on youtube hands down

  • @Zoe-fw6kt
    @Zoe-fw6kt ปีที่แล้ว

    please start posting new videos, I watched loads of algothrim videos, yours are the ones that make more senses. and easier to understand, Thank you~~~

  • @DJSamijon
    @DJSamijon ปีที่แล้ว

    i love that you did it in the execution order

  • @ShubhamKumar-sj6dp
    @ShubhamKumar-sj6dp 2 ปีที่แล้ว

    this is the best illustration for recursion tree when called under a loop, every video just draw a two way or three way branch from beginning but this was exactly step by step , thnx

  • @riturathinsharma5931
    @riturathinsharma5931 2 ปีที่แล้ว

    O(n!)

  • @soldiers4838
    @soldiers4838 2 ปีที่แล้ว

    hello sir i have a problem regarding making combination can you solve it please

  • @LTZMSYAL
    @LTZMSYAL 2 ปีที่แล้ว

    great job thank's that was clear!

  • @soninirav
    @soninirav 2 ปีที่แล้ว

    Keep going man....your explanation skills are just awesome :)😃

  • @kewtomrao
    @kewtomrao 2 ปีที่แล้ว

    Awesome explanation sir. Thanks for this!

  • @Chloe-si2hq
    @Chloe-si2hq 2 ปีที่แล้ว

    Thank you for your patience and hard work for actually walking us through the recursive process. The recursion tree is clear and solid. You really know what you are teaching unlike most of the LeetCode TH-camr out there who only copy and paste code. Thanks again!

  • @zidane6165
    @zidane6165 2 ปีที่แล้ว

    Read the way of solving it using GeeksForGeeks, AlgoExpert, Leetcode prime solution explanation, couple of youtube videos. Didn't understand it from any, but you. Thank you.

  • @navderm
    @navderm 2 ปีที่แล้ว

    the removal of one element from an array itself is an O(n) complexity. That turns your solution into O(n*n*(n!))

    • @mistercorea
      @mistercorea 2 ปีที่แล้ว

      What if you use a splice() function that will be O(1)? can you explain why it is O(n^2 * n!)?

    • @navderm
      @navderm 2 ปีที่แล้ว

      @@mistercorea How does splice work internally? How do you say that splice is an O(1) algorithm? Splice itself cannot be O(1) but at the minimum has to be O(n).

  • @dhillon6449
    @dhillon6449 2 ปีที่แล้ว

    the best

  • @aadil4236
    @aadil4236 2 ปีที่แล้ว

    Jesus, what an underrated video. Thank you so much, mate!!

  • @soumikkarmakar7433
    @soumikkarmakar7433 2 ปีที่แล้ว

    No one cared to explain how recursion is working inside the for loop. But you did it thanks a lot man!!

  • @spicytuna08
    @spicytuna08 2 ปีที่แล้ว

    nice

  • @danishuddin9752
    @danishuddin9752 2 ปีที่แล้ว

    Thank andi guru garu, ee logic ardham kaaka oka roju antha chacchi poya!

  • @admercs
    @admercs 2 ปีที่แล้ว

    Nice explanation!

  • @rjkal
    @rjkal 2 ปีที่แล้ว

    Wow! You did a phenomenal job of explaining this in much simpler terms. Thank you so much for making this. Now, I understand this problem way better. I have one question though - Isn't the time complexity O(n * n!) from the tree diagram you illustrated? n times we are doing n! right, or can we reduce O(n * n!) to O(n!)?

  • @marktheimmortal
    @marktheimmortal 2 ปีที่แล้ว

    Great explanation of the problem and solution! Nice one!

  • @prafullakh
    @prafullakh 2 ปีที่แล้ว

    Today marks 3 years since you posted this video. Why have you stopped posting new videos? You are a very good teacher, Sir. You have a divine gift. Recursive thanks to you. PLEASE START POSTING NEW VIDEOS.

  • @ruixue6955
    @ruixue6955 2 ปีที่แล้ว

    1:22 algorithm - 1:29 recursion 1:54 go through the recursion tree 2:40 11:46 code

  • @tonyz2203
    @tonyz2203 2 ปีที่แล้ว

    no more updates? best video

  • @sanskarkaazi3830
    @sanskarkaazi3830 2 ปีที่แล้ว

    Can somebody do this with java. ?

  • @quochunghoang8833
    @quochunghoang8833 2 ปีที่แล้ว

    Wonderful recursive explanation !!! Thank you.

  • @princeagrawal7307
    @princeagrawal7307 3 ปีที่แล้ว

    int findMaxLen(string s) { // code here stack<int>st; st.push(-1); int ans=0; for(int i=0;i<s.size();i++){ if(s[i]=='(')st.push(i); else{ st.pop(); if(st.empty()) st.push(i); else ans=max(ans,i-st.top()); } } return ans; }

  • @leohippochin708
    @leohippochin708 3 ปีที่แล้ว

    This video is very well done. Good Job. Man!

  • @sumerindia89
    @sumerindia89 3 ปีที่แล้ว

    The way you explain about call stack, this is appreciable.

  • @gurjotsinghsidhu1643
    @gurjotsinghsidhu1643 3 ปีที่แล้ว

    Very nice explanation. Can someone show how to do write this in Python?

  • @saumyaranjannayak2101
    @saumyaranjannayak2101 3 ปีที่แล้ว

    Awesome !

  • @oziomaogbe8665
    @oziomaogbe8665 3 ปีที่แล้ว

    Love you bro

  • @roger_ramirez
    @roger_ramirez 3 ปีที่แล้ว

    Best explanation I have watched. Thanks!

  • @yakovkemer5062
    @yakovkemer5062 3 ปีที่แล้ว

    Very nice explanation. Time complexion will O(nm) where n is number of candidates and m is a target. You have 2 inputs. So first shit * second shit.

  • @philsousa
    @philsousa 3 ปีที่แล้ว

    How do you do that call stack step by step thing? Are those just slides?

  • @joelcruz2873
    @joelcruz2873 3 ปีที่แล้ว

    Great video!