Code From Scratch - Keerti Purswani
Code From Scratch - Keerti Purswani
  • 62
  • 291 023

Video

5. TRICKY BST Question Explained in East Way with CODE | MUST watch! ✌️
zhlédnutí 432Před rokem
You can practise the question here- bit.ly/3lE5KmK If you appreciate teachers, please do subscribe - www.youtube.com/@codefromscratch-keertipurswani?sub_confirmation=1 Hoping to see you everyday for the next 18 days! #dsa #datastructures #bst
4. LCA in BST | Lowest Common Ancestor explained in Easy Way with CODE in Detail! ✌🏻
zhlédnutí 429Před rokem
You can practise the question here- bit.ly/3YSYilM If you appreciate teachers, please do subscribe - www.youtube.com/@codefromscratch-keertipurswani?sub_confirmation=1 Hoping to see you everyday for the next 18 days! #dsa #datastructures #bst
3. Kth Smallest/Largest Element in BST | Explanation with CODE for Beginners | Become Expert with me
zhlédnutí 1,8KPřed rokem
3. Kth Smallest/Largest Element in BST | Explanation with CODE for Beginners | Become Expert with me
2. Insert a node in BST | Explanation with code in detail | Beginner level ✌🏻
zhlédnutí 516Před rokem
2. Insert a node in BST | Explanation with code in detail | Beginner level ✌🏻
1. Binary Search Trees | Intro for beginners with code | Check for BST | MUST DO TOPIC!!!
zhlédnutí 1,4KPřed rokem
1. Binary Search Trees | Intro for beginners with code | Check for BST | MUST DO TOPIC!!!
K-ANAGRAMS | Strings | Detailed explanation with code, multiple methods with complexities! 💪🚀✌️
zhlédnutí 2,8KPřed rokem
K-ANAGRAMS | Strings | Detailed explanation with code, multiple methods with complexities! 💪🚀✌️
1. Anagrams | Strings | Multiple methods with Optimisations & Code! New Series! ❤️🚀💪
zhlédnutí 4,3KPřed rokem
1. Anagrams | Strings | Multiple methods with Optimisations & Code! New Series! ❤️🚀💪
8. Vertical Sum in a Binary Tree | Questions that you must practise! Ace DSA with me 🚀💪✌️
zhlédnutí 2,3KPřed 2 lety
8. Vertical Sum in a Binary Tree | Questions that you must practise! Ace DSA with me 🚀💪✌️
7. Preorder, Postorder Traversals in Binary Tree | Understand Code in detail with visual explanation
zhlédnutí 754Před 2 lety
7. Preorder, Postorder Traversals in Binary Tree | Understand Code in detail with visual explanation
6. Tree traversals! Inorder Tree Traversal Code explained in easy way!! 🚀💪✌️
zhlédnutí 946Před 2 lety
6. Tree traversals! Inorder Tree Traversal Code explained in easy way!! 🚀💪✌️
14. Josephus Problem | Tricky and interesting Recursion Problem that you must try 🚀💪✌️
zhlédnutí 13KPřed 2 lety
14. Josephus Problem | Tricky and interesting Recursion Problem that you must try 🚀💪✌️
5. Count Number of SubTrees having given Sum | Recursion in Binary Trees with edge cases 🚀💪✌️
zhlédnutí 2,3KPřed 2 lety
5. Count Number of SubTrees having given Sum | Recursion in Binary Trees with edge cases 🚀💪✌️
13. Sums of all Subsets | Recursion and Backtracking | Practise with me | Ace DSA ✌️🚀💪
zhlédnutí 1,5KPřed 2 lety
13. Sums of all Subsets | Recursion and Backtracking | Practise with me | Ace DSA ✌️🚀💪
4. Height of Binary Tree | Medium level Binary Tree Ques Using Recursion | Time, Space Complexity ✌️
zhlédnutí 1,6KPřed 2 lety
4. Height of Binary Tree | Medium level Binary Tree Ques Using Recursion | Time, Space Complexity ✌️
3. Root to Leaf Path Sum | Binary Trees | Medium Level | Understand recursion properly 🚀🔥💪
zhlédnutí 2,2KPřed 2 lety
3. Root to Leaf Path Sum | Binary Trees | Medium Level | Understand recursion properly 🚀🔥💪
2. Sum of Binary Tree | Understand Time and Space Complexity | Recursion in trees ✌️🚀🔥
zhlédnutí 2,4KPřed 2 lety
2. Sum of Binary Tree | Understand Time and Space Complexity | Recursion in trees ✌️🚀🔥
1. Binary Trees - Understand Basics | Calculate size using recursion 💪🚀
zhlédnutí 6KPřed 2 lety
1. Binary Trees - Understand Basics | Calculate size using recursion 💪🚀
12. Possible words from phone numbers - Practise recursion and backtracking with me 🚀🔥💪
zhlédnutí 2,3KPřed 2 lety
12. Possible words from phone numbers - Practise recursion and backtracking with me 🚀🔥💪
11. Generate Parantheses | The recursion question that I have asked the most in interviews! 🚀🚀
zhlédnutí 8KPřed 2 lety
11. Generate Parantheses | The recursion question that I have asked the most in interviews! 🚀🚀
10. Amazon Interview Question | Permutation with Spaces| Practice recursion with me 🔥🚀💪
zhlédnutí 2,2KPřed 2 lety
10. Amazon Interview Question | Permutation with Spaces| Practice recursion with me 🔥🚀💪
9. String Permutations Code using Recursion & Backtracking! Simple Explanation 💪🚀🔥
zhlédnutí 4,3KPřed 2 lety
9. String Permutations Code using Recursion & Backtracking! Simple Explanation 💪🚀🔥
8. Find Subsets - Can you understand the variation from subsequences code? Understand details 🔥🚀
zhlédnutí 2,9KPřed 2 lety
8. Find Subsets - Can you understand the variation from subsequences code? Understand details 🔥🚀
7. Subsequences, Power Set using Recursion Code - Practise with me, understand code in detail! 🚀🔥
zhlédnutí 6KPřed 2 lety
7. Subsequences, Power Set using Recursion Code - Practise with me, understand code in detail! 🚀🔥
6. This Concept will help you solve HARD problems - Finding Subsequences, Power Set by Recursion 🚀
zhlédnutí 3,7KPřed 2 lety
6. This Concept will help you solve HARD problems - Finding Subsequences, Power Set by Recursion 🚀
5. Binary Search, Reverse string and Check if string is Palindrome | 3 Questions using Recursion ✌️
zhlédnutí 3KPřed 2 lety
5. Binary Search, Reverse string and Check if string is Palindrome | 3 Questions using Recursion ✌️
4. Print this pattern using Recursion-Write optimised recursive code that will impress interviewer🤭
zhlédnutí 3,6KPřed 2 lety
4. Print this pattern using Recursion-Write optimised recursive code that will impress interviewer🤭
3. Can you tell the output of this recursive code? Let's visualise and practice together!! 🚀🚀🔥🔥
zhlédnutí 3,5KPřed 2 lety
3. Can you tell the output of this recursive code? Let's visualise and practice together!! 🚀🚀🔥🔥
2. Fibonacci Visualisation | Recursion Tree and Stack | This will help you get basics for hard quess
zhlédnutí 3,9KPřed 2 lety
2. Fibonacci Visualisation | Recursion Tree and Stack | This will help you get basics for hard quess
1. Understand Recursion in Easy Way | Recursive Function, Tree, Stack | Very Imp Video!! 🚀🚀🔥🔥
zhlédnutí 10KPřed 2 lety
1. Understand Recursion in Easy Way | Recursive Function, Tree, Stack | Very Imp Video!! 🚀🚀🔥🔥

Komentáře

  • @suyashtripathi1818
    @suyashtripathi1818 Před 3 dny

    thanku dii bobber bhaiya ne es question ko thoda complex bna diya hai so now i understand this explanation btw thanku😃

  • @atikurrahmanhridoy7192

    Nice

  • @wrestlingshorts
    @wrestlingshorts Před 20 dny

    Day2

  • @harisubramanianm9920
    @harisubramanianm9920 Před 23 dny

    17. Letter Combinations of a Phone Number for Java people class Solution { public List<String> letterCombinations(String digits) { HashMap<Integer,char[]> mp = new HashMap<>(); mp.put(2,new char[]{'a','b','c'}); mp.put(3,new char[]{'d','e','f'}); mp.put(4,new char[]{'g','h','i'}); mp.put(5,new char[]{'j','k','l'}); mp.put(6,new char[]{'m','n','o'}); mp.put(7,new char[]{'p','q','r','s'}); mp.put(8,new char[]{'t','u','v'}); mp.put(9,new char[]{'w','x','y','z'}); List<String>res = new ArrayList<>(); if(digits.length() == 0) return res; findLetterCombination(0,"",mp,res,digits); return res; } void findLetterCombination(int ind,String str,HashMap<Integer,char[]>mp,List<String> res, String dig){ if(ind >= dig.length()){ res.add(str); return; } int a = dig.charAt(ind) - '0'; char[] ch = mp.get(a); for(int i = 0;i < ch.length;i++){ findLetterCombination(ind+1,str+ch[i],mp,res,dig); } } }

  • @wrestlingshorts
    @wrestlingshorts Před 23 dny

    Di JAVA? 🥲🥲

  • @wrestlingshorts
    @wrestlingshorts Před 23 dny

    DAY1

  • @wrestlingshorts
    @wrestlingshorts Před 23 dny

    DAY1

  • @wrestlingshorts
    @wrestlingshorts Před 23 dny

    DAY1

  • @pranesh25joshi
    @pranesh25joshi Před 24 dny

    tooo good !!

  • @chaitanyaphaneendra3111

    try testing the solution for {2,1}. You are a queen of wrong solutions

  • @chaitanyaphaneendra3111

    queen of wrong solutions

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

    OK YOu explained really well ! Thankyou so much!

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

    Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate numbers sum to target. Each number in candidates may only be used once in the combination. mam could you make a video to solve this?

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

    Can't be this easy. Thnq so much. ❤

  • @Raj-jw7kq
    @Raj-jw7kq Před měsícem

    WOW!!! A+ Quality teaching Mam . you know our Mannn Ka doubt ... thats why you make us understand everything so easily . stay Succesfull Mam.

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

    Thank you keerti for wonderful explaination

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

    Hi

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

    super easy explanation mam love it

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

    Additional condition included for this problem in practice problem. if(N <= 0) return {N}; if the number is less than or equal to zero return that number only. Otherwise print the pattern.

  • @sabarishchungath3418
    @sabarishchungath3418 Před 3 měsíci

    I understood the problem the relation part But the mod part and add are trial and error right or are there any further logic to break it down

  • @ashishkumarsingh6618
    @ashishkumarsingh6618 Před 3 měsíci

    Help me where my logic is wrong: Split Array Largest Sum: 28/32 test cases passed, Approach Linear search Case: [2,3,1,1,1,1,1] , k = 5 // This test cases failed Please help me in function possibleMinimizedLargestSum(), where my logic is wrong.. class Solution { // //Approach 1: Linear, TC: O((sum-max +1)* n) public int splitArray(int[] nums, int k) { int max = Integer.MIN_VALUE; int sum = 0; int len = nums.length; for(int elm : nums){ max = Math.max(elm, max); sum += elm; } if(k == 1 ) return sum; if(k == len) return max; while(max <= sum){ int countOfSplit = findCountOfSplit(nums, max, len, k); if(countOfSplit == k) return max; // minimized largest sum max++; } return -1; } public int findCountOfSplit(int []arr, int possibleMinimizedLargestSum, int len, int k){ // [7,2,2,15,10,18], k = 3 // Edge Case: [2,3,1,1,1,1,1] , k = 5 int count = 1; int splitSum = 0; for(int i = 0; i < len; i++){ if(splitSum + arr[i] <= possibleMinimizedLargestSum){ splitSum += arr[i]; }else{ count++; if(count > k) break; //Just Optimizing the code splitSum = arr[i]; } } return count; } }

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

    Wonderful explanation mam.

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

    int findMaximum(int[] arr, int n) { // code here int bitonic = 0; for(int i=1; i<arr.length; i++){ if(arr[i]<arr[i-1]){ bitonic = arr[i-1]; break; }else{ bitonic = arr[i]; } } return bitonic; }. no need to have binary search.

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

    thanks mam especially for giving us hints and not directly jumping to solution and i thought about the edge cases

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

    Didi thank you so much we are getting knowledge from you only thankyou guruji

  • @hydrocy.9165
    @hydrocy.9165 Před 5 měsíci

    using + with string name adds parenthesis?

  • @shreehari2589
    @shreehari2589 Před 5 měsíci

    Awesome explanation please keep uploading more videos

  • @TaraChand-eg6uk
    @TaraChand-eg6uk Před 5 měsíci

    Why is it necessary that either half will be sorted, not both. let given array is [4, 5, 6, 7, 0, 1,2] (actual sorted array is [0, 1,2, 4,5,6,7] and rotated by 4 units] . This array is not only sorted in both halves but also less than mid value. if the target is 2 then will it work ? how can we achieve it logarithm time complexity

  • @aravinds6406
    @aravinds6406 Před 5 měsíci

    Excellent explanation.

  • @xxbighotshotxx
    @xxbighotshotxx Před 5 měsíci

    Thank you for posting this. I was able to figure out the small mistake that I had made: return count <= 2*k whereas I put: return count // 2 <= k Which wouldn't work because of integer division

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

    Could you please make another video for the dry run. Just for better visibility.

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

    awesome video ma'am, very clear explanation.

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

    best explaination

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

    Amazing explanation!! , finally I got the gist of it after a day of watching 🤯tutorials

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

    Very good explanation 😊 thanku

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

    Submitted Successfully💯💯

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

    bahut acha samjhaya

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

    thank you ma'am, solved this without referring solution once you explained the logic, so easy it was, thanks a lot ma'am!

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

    jo ata tha wo bhi bhol gya

  • @ShubhamKumar-re4zv
    @ShubhamKumar-re4zv Před 7 měsíci

    If you dont pass curr by reference then there is no need of poping

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

    I am unable to understand recursive solution for question- minimum jump to reach end of array question Please could you explain it in video i request keerti and thank for this video ❤

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

    Thanks, cool solution.

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

    what an awesome lecture, thank you for making recursion a lot easier ma'am🙏🙏

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

    Nice 🙂

  • @162sujiths4
    @162sujiths4 Před 7 měsíci

    After referencing 1000 of videos. Finally I got from this video. Thank you🙏

  • @Rohit-de2wz
    @Rohit-de2wz Před 8 měsíci

    Aaram se bolo kuchh samajh mein nahin aaya kya bol diya😂😂😂😂😂😅😅😅😅😅

  • @wtf._.irzxm_
    @wtf._.irzxm_ Před 9 měsíci

    Chup kr

  • @ChiruBillion
    @ChiruBillion Před 9 měsíci

    Didi, kaha gye aap?

  • @rocklinks
    @rocklinks Před 9 měsíci

    I thought to do solve without binary search and succeeded with it Just a 1 line did this return min(nums) Thats it It worked on leetcode for both the minimum medium problem and the minimum hard as well.

  • @omkark7118
    @omkark7118 Před 9 měsíci

    what if the array was A[] = {1, 45, 60, 100} then in first iteration the mid value will be 51 and during isAllocation function, since A[2] i.e 60 is >mid(51) and it will return false?