- 62
- 291 023
Code From Scratch - Keerti Purswani
India
Registrace 26. 06. 2022
Welcome to Code From Scratch!
This channel is for beginners. This is for everyone who is struggling to learn DSA concepts, is having hard time understanding concepts, writing code or being consistent! ❤️
We will be picking up all topics, one by one, understand basic concepts, solve some easy level problems and move on to medium and hard level problems of all topics. We will be consistent and will show up everyday together to learn one concept. 🚀
Together, we will ace DSA and will be able to solve any question that comes infront of us because our basics will be so damn clear!! 🔥
This channel is for beginners. This is for everyone who is struggling to learn DSA concepts, is having hard time understanding concepts, writing code or being consistent! ❤️
We will be picking up all topics, one by one, understand basic concepts, solve some easy level problems and move on to medium and hard level problems of all topics. We will be consistent and will show up everyday together to learn one concept. 🚀
Together, we will ace DSA and will be able to solve any question that comes infront of us because our basics will be so damn clear!! 🔥
Deletion in BST | Tricky Question Explained with all Edge cases and CODE in Easy way!!
You can practise the question here- bit.ly/3RO7G80
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
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
zhlédnutí: 789
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!! 🚀🚀🔥🔥
thanku dii bobber bhaiya ne es question ko thoda complex bna diya hai so now i understand this explanation btw thanku😃
Nice
Day2
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); } } }
Di JAVA? 🥲🥲
But Video is insightful
DAY1
DAY1
DAY1
tooo good !!
try testing the solution for {2,1}. You are a queen of wrong solutions
queen of wrong solutions
And what is wrong, respected sir?
OK YOu explained really well ! Thankyou so much!
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?
Can't be this easy. Thnq so much. ❤
WOW!!! A+ Quality teaching Mam . you know our Mannn Ka doubt ... thats why you make us understand everything so easily . stay Succesfull Mam.
Thank you keerti for wonderful explaination
Hi
super easy explanation mam love it
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.
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
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; } }
Wonderful explanation mam.
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.
thanks mam especially for giving us hints and not directly jumping to solution and i thought about the edge cases
Didi thank you so much we are getting knowledge from you only thankyou guruji
using + with string name adds parenthesis?
Awesome explanation please keep uploading more videos
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
Excellent explanation.
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
Could you please make another video for the dry run. Just for better visibility.
awesome video ma'am, very clear explanation.
best explaination
Amazing explanation!! , finally I got the gist of it after a day of watching 🤯tutorials
Very good explanation 😊 thanku
Submitted Successfully💯💯
bahut acha samjhaya
thank you ma'am, solved this without referring solution once you explained the logic, so easy it was, thanks a lot ma'am!
jo ata tha wo bhi bhol gya
If you dont pass curr by reference then there is no need of poping
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 ❤
Thanks, cool solution.
what an awesome lecture, thank you for making recursion a lot easier ma'am🙏🙏
Nice 🙂
After referencing 1000 of videos. Finally I got from this video. Thank you🙏
Aaram se bolo kuchh samajh mein nahin aaya kya bol diya😂😂😂😂😂😅😅😅😅😅
Chup kr
Didi, kaha gye aap?
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.
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?