![take U forward](/img/default-banner.jpg)
- Видео 515
- Просмотров 80 425 885
take U forward
Индия
Добавлен 16 мар 2020
Hey, I am a Software Engineer. Where? You can find that on my LinkedIn. Also, I am a Candidate Master(2020) at Codeforces and a 6*(2019) at Codechef. In this channel, I try to create content which can help some of you.
I teach DSA stuff, I try to make it as easy as possible. The best thing about this channel is, you will find the thought process behind every problem and not just simple algorithms. All of the content is in English so that anyone can watch it. I also take live sessions on a channel named CodeBeyond, and I keep posting roadmaps on my second channel "Striver"
Codeforces/Codechef: striver_79
Subscribe to the channel and press the bell 🔔 for the latest updates!
Join us at: t.me/Competitive_Programming_tuf
For Business Collabs: striver@takeuforward.org
I teach DSA stuff, I try to make it as easy as possible. The best thing about this channel is, you will find the thought process behind every problem and not just simple algorithms. All of the content is in English so that anyone can watch it. I also take live sessions on a channel named CodeBeyond, and I keep posting roadmaps on my second channel "Striver"
Codeforces/Codechef: striver_79
Subscribe to the channel and press the bell 🔔 for the latest updates!
Join us at: t.me/Competitive_Programming_tuf
For Business Collabs: striver@takeuforward.org
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
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
Understood!!
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
Aaj smjh aaya why this works u explained so beuatifully ki feel aagi.
Absolutely brilliant explanation. You are making one fall in love with coding. Thank you for all your efforts. We are so grateful to u.
UNDERSTOOD ❤ FROM NIT SILCHAR...
UNDERSTOOD❤
Superb explanation.
Understood❤❤🔥🔥
Tq for the Hard work
thanks sir
thank you striver
"US"
Thanku
US
Understood!
UNDERSTOOD
understood
Thankyou for great solution Striver
What if there are multiple LCS and we have to print all of them ?
Understood
US
Understood
Understood.
understood
Thank you for this exceptional course..👍🙂
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
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; } };
Amazing explanation bhaiya💯
i thought the logic all by myself . and coded it up .. thanks striver
Understood
uderstood the algo thanks bro for the intution behind the algorithm❣❣
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?
US
understood❤
What an explanation !!
Understood.
understood
understood ig;
#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; }
I haven't learned about graph yet
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"); } } }
Understood bro (July 7 2024)
thank you
US
understood
understood
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 😄
Understood :)
Understood!!! Thanks a lot!!
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 ?