take U forward
take U forward
  • Видео 515
  • Просмотров 80 425 885
L13. Fractional Knapsack Algorithm
Find problem link, notes under Step 12: takeuforward.org/strivers-a2z-dsa-course/strivers-a2z-dsa-course-sheet-2/
Follow me on socials: linktr.ee/takeUforward
Просмотров: 17 080

Видео

L12. Candy | Slope Approach Intuition Based
Просмотров 9 тыс.Месяц назад
Find problem link, notes under Step 12: takeuforward.org/strivers-a2z-dsa-course/strivers-a2z-dsa-course-sheet-2/ Follow me on socials: linktr.ee/takeUforward
L11. Valid Parenthesis String | Multiple Approaches
Просмотров 8 тыс.Месяц назад
Find problem link, notes under Step 12: takeuforward.org/strivers-a2z-dsa-course/strivers-a2z-dsa-course-sheet-2/ Follow me on socials: linktr.ee/takeUforward
L10. Minimum number of platforms required in a railway station
Просмотров 6 тыс.Месяц назад
Find problem link, notes under Step 12: takeuforward.org/strivers-a2z-dsa-course/strivers-a2z-dsa-course-sheet-2/ Follow me on socials: linktr.ee/takeUforward
L9. Insert Intervals | Greedy Algorithms Playlist
Просмотров 5 тыс.Месяц назад
Find problem link, notes under Step 12: takeuforward.org/strivers-a2z-dsa-course/strivers-a2z-dsa-course-sheet-2/ Follow me on socials: linktr.ee/takeUforward
L8. Non Overlapping Intervals | Greedy Algorithms Playlist
Просмотров 5 тыс.Месяц назад
Find problem link, notes under Step 12: takeuforward.org/strivers-a2z-dsa-course/strivers-a2z-dsa-course-sheet-2/ Follow me on socials: linktr.ee/takeUforward
L7. N Meeting in One Room | Greedy Algorithms Playlist
Просмотров 7 тыс.Месяц назад
Find problem link, notes under Step 12: takeuforward.org/strivers-a2z-dsa-course/strivers-a2z-dsa-course-sheet-2/ Follow me on socials: linktr.ee/takeUforward
L6. Job Sequencing Problem | Greedy Algorithm Playlist
Просмотров 8 тыс.Месяц назад
Find problem link, notes here: takeuforward.org/strivers-a2z-dsa-course/strivers-a2z-dsa-course-sheet-2/ Follow me on socials: linktr.ee/takeUforward
L5. Jump Game - II | Greedy Algorithm Playlist
Просмотров 14 тыс.Месяц назад
Find problem link, notes in step 12: takeuforward.org/strivers-a2z-dsa-course/strivers-a2z-dsa-course-sheet-2/ Follow me on socials: linktr.ee/takeUforward
L4. Jump Game - I | Greedy Algorithm Playlist
Просмотров 12 тыс.Месяц назад
Find problem link, notes in step 12: takeuforward.org/strivers-a2z-dsa-course/strivers-a2z-dsa-course-sheet-2/ Follow me on socials: linktr.ee/takeUforward
L3. Shortest Job First (or SJF) CPU Scheduling
Просмотров 10 тыс.Месяц назад
Find problem link, notes in step 12: takeuforward.org/strivers-a2z-dsa-course/strivers-a2z-dsa-course-sheet-2/ Follow me on socials: linktr.ee/takeUforward
L2. Lemonade Change | Greedy Algorithm Playlist
Просмотров 10 тыс.Месяц назад
Find problem link, notes in step 12: takeuforward.org/strivers-a2z-dsa-course/strivers-a2z-dsa-course-sheet-2/ Follow me on socials: linktr.ee/takeUforward
L1. Assign Cookies | Greedy Algorithm Playlist
Просмотров 32 тыс.Месяц назад
Find problem link, notes under Step 12: takeuforward.org/strivers-a2z-dsa-course/strivers-a2z-dsa-course-sheet-2/ Follow me on socials: linktr.ee/takeUforward
L12. Minimum Window Substring | 2 Pointers and Sliding Window Playlist
Просмотров 41 тыс.3 месяца назад
Notes/Codes/Problem links under step 10 of A2Z DSA Course: takeuforward.org/strivers-a2z-dsa-course/strivers-a2z-dsa-course-sheet-2/ Entire playlist: ruclips.net/p/PLgUwDviBIf0q7vrFA_HEWcqRqMpCXzYAL Follow us on our other social media handles: linktr.ee/takeuforward
L11. Subarray with k different integers | 2 Pointers and Sliding Window Playlist
Просмотров 25 тыс.3 месяца назад
Notes/Codes/Problem links under step 10 of A2Z DSA Course: takeuforward.org/strivers-a2z-dsa-course/strivers-a2z-dsa-course-sheet-2/ Entire playlist: ruclips.net/p/PLgUwDviBIf0q7vrFA_HEWcqRqMpCXzYAL Follow us on our other social media handles: linktr.ee/takeuforward
L10. Count number of Nice subarrays | 2 Pointers and Sliding Window Playlist
Просмотров 30 тыс.3 месяца назад
L10. Count number of Nice subarrays | 2 Pointers and Sliding Window Playlist
L9. Binary Subarrays With Sum | 2 Pointers and Sliding Window Playlist
Просмотров 39 тыс.3 месяца назад
L9. Binary Subarrays With Sum | 2 Pointers and Sliding Window Playlist
L8. Longest Repeating Character Replacement | 2 Pointers and Sliding Window Playlist
Просмотров 40 тыс.3 месяца назад
L8. Longest Repeating Character Replacement | 2 Pointers and Sliding Window Playlist
L7. Number of Substrings Containing All Three Characters | 2 Pointers and Sliding Window Playlist
Просмотров 28 тыс.3 месяца назад
L7. Number of Substrings Containing All Three Characters | 2 Pointers and Sliding Window Playlist
L6. Longest Substring With At Most K Distinct Characters | 2 Pointers and Sliding Window Playlist
Просмотров 23 тыс.3 месяца назад
L6. Longest Substring With At Most K Distinct Characters | 2 Pointers and Sliding Window Playlist
L5. Fruit Into Baskets | 2 Pointers and Sliding Window Playlist
Просмотров 32 тыс.3 месяца назад
L5. Fruit Into Baskets | 2 Pointers and Sliding Window Playlist
L4. Max Consecutive Ones III | 2 Pointers and Sliding Window Playlist
Просмотров 41 тыс.3 месяца назад
L4. Max Consecutive Ones III | 2 Pointers and Sliding Window Playlist
L3. Longest Substring Without Repeating Characters | 2 Pointers and Sliding Window Playlist
Просмотров 66 тыс.3 месяца назад
L3. Longest Substring Without Repeating Characters | 2 Pointers and Sliding Window Playlist
L2. Maximum Points You Can Obtain from Cards | 2 Pointers and Sliding Window Playlist
Просмотров 42 тыс.3 месяца назад
L2. Maximum Points You Can Obtain from Cards | 2 Pointers and Sliding Window Playlist
L1. Introduction to Sliding Window and 2 Pointers | Templates | Patterns
Просмотров 116 тыс.3 месяца назад
L1. Introduction to Sliding Window and 2 Pointers | Templates | Patterns
L8. Smallest Prime Factor (SPF) | Prime Factorisation | Query Based Problem | Maths Playlist
Просмотров 15 тыс.3 месяца назад
L8. Smallest Prime Factor (SPF) | Prime Factorisation | Query Based Problem | Maths Playlist
L7. Count Prime in a range L-R | Maths Playlist
Просмотров 8 тыс.3 месяца назад
L7. Count Prime in a range L-R | Maths Playlist
L6. Sieve of Eratosthenes | Maths Playlist
Просмотров 22 тыс.3 месяца назад
L6. Sieve of Eratosthenes | Maths Playlist
L5. Power Exponentiation | Maths Playlist
Просмотров 14 тыс.3 месяца назад
L5. Power Exponentiation | Maths Playlist
L4. Print all prime factors of a Number | Maths Playlist
Просмотров 21 тыс.3 месяца назад
L4. Print all prime factors of a Number | Maths Playlist

Комментарии

  • @srivabhi22
    @srivabhi22 50 минут назад

    Understood!!

  • @shreyabirthare374
    @shreyabirthare374 Час назад

    I have a doubt: in the first tree, what will be the output if the left of 3 had a node say "12" and the left of node 5 had a node "13". In this case, will the output be 1,2,3,12,5,13,6,10,11,9,8,7

  • @iamnottech8918
    @iamnottech8918 Час назад

    Aaj smjh aaya why this works u explained so beuatifully ki feel aagi.

  • @eshaalakshmids
    @eshaalakshmids 2 часа назад

    Absolutely brilliant explanation. You are making one fall in love with coding. Thank you for all your efforts. We are so grateful to u.

  • @Hustler00000
    @Hustler00000 2 часа назад

    UNDERSTOOD ❤ FROM NIT SILCHAR...

  • @Hustler00000
    @Hustler00000 2 часа назад

    UNDERSTOOD❤

  • @iamnottech8918
    @iamnottech8918 2 часа назад

    Superb explanation.

  • @theresilientpianist7114
    @theresilientpianist7114 2 часа назад

    Understood❤❤🔥🔥

  • @shaiksoofi3741
    @shaiksoofi3741 2 часа назад

    Tq for the Hard work

  • @sanchitdeepsingh9663
    @sanchitdeepsingh9663 2 часа назад

    thanks sir

  • @user-cz9vm1hh4g
    @user-cz9vm1hh4g 3 часа назад

    thank you striver

  • @user-gf4kt8jm7d
    @user-gf4kt8jm7d 3 часа назад

    "US"

  • @ashishpradhan6250
    @ashishpradhan6250 3 часа назад

    Thanku

  • @abinash1878
    @abinash1878 3 часа назад

    US

  • @user-xm5wm4zf2r
    @user-xm5wm4zf2r 3 часа назад

    Understood!

  • @gopinathg4356
    @gopinathg4356 4 часа назад

    UNDERSTOOD

  • @b01adarshrakshit79
    @b01adarshrakshit79 4 часа назад

    understood

  • @ritikshandilya7075
    @ritikshandilya7075 4 часа назад

    Thankyou for great solution Striver

  • @yatendraupadhyay2180
    @yatendraupadhyay2180 4 часа назад

    What if there are multiple LCS and we have to print all of them ?

  • @GungunRamchandani
    @GungunRamchandani 4 часа назад

    Understood

  • @parthh3963
    @parthh3963 4 часа назад

    US

  • @no_name45689
    @no_name45689 4 часа назад

    Understood

  • @no_name45689
    @no_name45689 4 часа назад

    Understood.

  • @ankitkhandaf0327
    @ankitkhandaf0327 5 часов назад

    understood

  • @himanshigupta3255
    @himanshigupta3255 5 часов назад

    Thank you for this exceptional course..👍🙂

  • @terabaap1775
    @terabaap1775 5 часов назад

    our teacher taught this as if it were a problem about theory of relativity and you taught it like the alphabet. thank you so much

  • @KeigoEdits
    @KeigoEdits 5 часов назад

    when I saw this question, there was in my mind that it is saying to insert, ofcourse it will be inplace and end up doing inplace which beats 5% people in runtime😂 BUT beats 98% people in terms of Memory Here is the code, if anyone wanna see this approach class Solution { public: vector<vector<int>> insert(vector<vector<int>>& inter, vector<int>& newinter) { int n=inter.size(),low=0,high=n-1,ans=-11; while(low<=high){ int mid=low+(high-low)/2; if(newinter[0]==inter[mid][0]){ ans=mid; break; } else if(newinter[0]<inter[mid][0]) high=mid-1; else low=mid+1; } if(ans==-11) ans=high; if(ans==-1){ int last=-111; while(!inter.empty() && inter[0][0]<=newinter[1]){ last=inter[0][1]; inter.erase(inter.begin()); } newinter[1]=max(newinter[1],last); inter.insert(inter.begin(),newinter); } else{ if(inter[ans][1]>=newinter[0]){ int last=inter[ans][1]; while(inter.size()>=ans+2 && inter[ans+1][0]<=newinter[1]){ last=inter[ans+1][1]; inter.erase(inter.begin()+ans+1); } inter[ans][1]=max(newinter[1],last); } else{ int last=inter[ans][1]; while(inter.size()>=ans+2 && inter[ans+1][0]<=newinter[1]){ last=inter[ans+1][1]; inter.erase(inter.begin()+ans+1); } newinter[1]=max(newinter[1],last); inter.insert(inter.begin()+ans+1,newinter); } } cout<<ans; return inter; } };

  • @sujalmishra352
    @sujalmishra352 5 часов назад

    Amazing explanation bhaiya💯

  • @VivekSharma-eh2tv
    @VivekSharma-eh2tv 5 часов назад

    i thought the logic all by myself . and coded it up .. thanks striver

  • @jyothibijjam3956
    @jyothibijjam3956 6 часов назад

    Understood

  • @user-fz1tl2dh9b
    @user-fz1tl2dh9b 6 часов назад

    uderstood the algo thanks bro for the intution behind the algorithm❣❣

  • @albedo9617
    @albedo9617 6 часов назад

    If we add -2 to the stack, pop it and then try to access the value of minimum, it will return as 2, but shouldn't it return us 0 or nothing in this case?

  • @Ayush37262
    @Ayush37262 6 часов назад

    US

  • @khalasianiket816
    @khalasianiket816 6 часов назад

    understood❤

  • @iamnottech8918
    @iamnottech8918 6 часов назад

    What an explanation !!

  • @ak-gh5dl
    @ak-gh5dl 7 часов назад

    Understood.

  • @shaiksoofi3741
    @shaiksoofi3741 7 часов назад

    understood

  • @krushnachandra4903
    @krushnachandra4903 7 часов назад

    understood ig;

  • @krushnachandra4903
    @krushnachandra4903 7 часов назад

    #include <bits/stdc++.h> using namespace std; void f(int i,int n){ if(i>n) return; f(i+1,n); cout<<i<<" "; } int main() { cout<<"Enter a number: "; int n; cin>>n; int i = 1; f(i,n); return 0; }

  • @lalitbisht8381
    @lalitbisht8381 7 часов назад

    I haven't learned about graph yet

  • @swarajkumar9550
    @swarajkumar9550 7 часов назад

    class Node { int data; Node next; Node(int data) { this.data = data; this.next = null; } } public class Main { // converting array to linked list private static Node convertArray2LinkedList(int[] arr) { if (arr.length == 0) return null; Node head = new Node(arr[0]); Node curr = head; for (int i = 1; i < arr.length; i++) { Node temp = new Node(arr[i]); curr.next = temp; curr = curr.next; } return head; } // traversing linked list public static void display(Node head){ Node temp = head; while (temp != null) { System.out.println(temp.data); temp = temp.next; } } // length of linked list public static int lengthOfLinkedList(Node head){ int len = 0; Node curr = head; while(curr != null){ len++; curr = curr.next; } return len; } // checking if element is present in linked list or lengthOfLinkedList public static boolean check(Node head,int val){ Node curr = head; while(curr != null){ if(curr.data == val)return true; curr = curr.next; } return false; } public static void main(String[] args) { int[] arr = {11, 2, 3, 4, 5}; Node head = convertArray2LinkedList(arr); System.out.println("Displaying linked list: "); display(head); System.out.println("Length of linked list is: "); System.out.println(lengthOfLinkedList(head)); System.out.println("checking if value exist in linked list: "); if((check(head,9) == true)){ System.out.println("yes"); }else{ System.out.println("no"); } } }

  • @nk___24
    @nk___24 7 часов назад

    Understood bro (July 7 2024)

  • @Shivi32590
    @Shivi32590 7 часов назад

    thank you

  • @PavanKumar-rr6mg
    @PavanKumar-rr6mg 7 часов назад

    US

  • @justexisting3492
    @justexisting3492 7 часов назад

    understood

  • @saibunny1253
    @saibunny1253 7 часов назад

    understood

  • @BhavanaReddy15
    @BhavanaReddy15 7 часов назад

    Wow didn't know this was a 50 minute video!! Never made me look at the time ❤❤❤ this is the best video on merge sort❤ thank you very much 😄

  • @nikitakeshri9233
    @nikitakeshri9233 8 часов назад

    Understood :)

  • @user-sw3wx5tx8n
    @user-sw3wx5tx8n 8 часов назад

    Understood!!! Thanks a lot!!

  • @learningstuff4578
    @learningstuff4578 8 часов назад

    What if the input arr is [[1,2,3],[1,2,3],[1,2,3]] . then (n * m) /2 will not hold. Can someone please clarify ?