Тёмный
take U forward
take U forward
take U forward
Подписаться
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
L6. Sieve of Eratosthenes | Maths Playlist
18:27
3 месяца назад
L5. Power Exponentiation | Maths Playlist
12:39
3 месяца назад
Комментарии
@SuvradipDasPhotographyOfficial
@SuvradipDasPhotographyOfficial 5 минут назад
Awesome Striver, done with sliding window and two pointers and now started with bit manipulation yesterday
@manansharma7038
@manansharma7038 20 минут назад
us
@anoopsingh8026
@anoopsingh8026 44 минуты назад
understood
@soumiyamuthuraj3516
@soumiyamuthuraj3516 48 минут назад
awesome
@ipshitatandon5134
@ipshitatandon5134 Час назад
Such a nice method!
@jitendrapal4216
@jitendrapal4216 Час назад
Your explanation is great ❤
@Balasubramaniam.M
@Balasubramaniam.M Час назад
Understood very very welllllll..
@k.gunasri6670
@k.gunasri6670 Час назад
Understood❤
@akashshukla3881
@akashshukla3881 3 часа назад
Understood.
@amanasrani6405
@amanasrani6405 5 часов назад
Thank You Striver, If you are not there pata nhi kya hota thousand of student ka Amazingggggg! also hats off to your patience doing dry run❤❤❤❤❤❤❤
@degenxbt-rx8ke
@degenxbt-rx8ke 6 часов назад
holy sh*t this question was hard to understand, but seriously man what an explanation!
@rahman_khan3
@rahman_khan3 6 часов назад
understood
@mlgfamlmao4417
@mlgfamlmao4417 6 часов назад
Understood
@osamaintezar8100
@osamaintezar8100 7 часов назад
Understood
@himanshidafouty347
@himanshidafouty347 7 часов назад
Understood
@unknown2698
@unknown2698 7 часов назад
public static int maxScore(int[] cardPoints, int k) { int lsum =0, rsum =0, max =0,sum =0; int n = cardPoints.length; for(int i=0;i<k;i++){ lsum = lsum + cardPoints[i]; } max = lsum; for (int i = 0; i < k; i++) { lsum -= cardPoints[k-1-i]; rsum += cardPoints[cardPoints.length -1-i]; sum = lsum+rsum; if(sum>max){ max = sum; } } return max; } same approach but easier to understand
@adityarajsrivastava3291
@adityarajsrivastava3291 7 часов назад
understood bhaiya !!!
@NeverGive-Up..26
@NeverGive-Up..26 8 часов назад
US
@UECAshutoshKumar
@UECAshutoshKumar 8 часов назад
Thank you! Understood!
@012srishtisaini7
@012srishtisaini7 8 часов назад
The palindrome problem can also run without including<iostream> using namespace std; as --- bool palindrome(int n) { int reversenum = 0; int dup = n; while (n > 0) { int ld = n % 10; reversenum = (reversenum * 10) + ld; n = n / 10; } return dup == reversenum; if (dup == reversenum) cout << "true" << endl; else cout << "false" << endl; }
@RajNamdev_19
@RajNamdev_19 8 часов назад
Understood.
@himanshidafouty347
@himanshidafouty347 9 часов назад
Understood
@abhishekprasad010
@abhishekprasad010 9 часов назад
Understood!
@shaiksoofi3741
@shaiksoofi3741 9 часов назад
understood
@NewtonVarma
@NewtonVarma 9 часов назад
Hey @takeUforward striver please upload string lectures,
@vvssreddy903
@vvssreddy903 9 часов назад
I have a small doubt, during 3rd recursive call the list is [3,2,1] and i value is 3. Now as i= arr.length, we print the list. After that to back track, we remove recently added element which is 2. Now the list becomes [3,1] but the i value doesnt change. It remains same 3.and after removing, we did sub(al,arr,i+1) which is sub([3,1],arr,4).im confusing here
@user-if3ce9gm7p
@user-if3ce9gm7p 9 часов назад
Understood sir thank you soo much sir
@durgeshjadhav01
@durgeshjadhav01 9 часов назад
nice
@UECAshutoshKumar
@UECAshutoshKumar 10 часов назад
Thank You Understood!!!
@engeng2359
@engeng2359 10 часов назад
Bro is god 🙌
@durgeshjadhav01
@durgeshjadhav01 10 часов назад
nice
@subhamraul
@subhamraul 10 часов назад
I actually thought the same idea by myself 😁
@DakshKaushik-vp8zo
@DakshKaushik-vp8zo 10 часов назад
understood
@jnayehsirine6222
@jnayehsirine6222 10 часов назад
GRATEFUL !
@vibe-x8238
@vibe-x8238 10 часов назад
Why are we stopping at {2, {2, 2}} ? In future operations we might have found a lesser difference path like {1, {2,2}} ?
@Neo-mx2yf
@Neo-mx2yf 10 часов назад
So in prev video, a method was taught to find ~x but it is a bit unclear. Let me try clear it up. Actually, ~x is just 1's complement of x, i.e., flip all bits. Eg: ~19 = ~(010011) = (101100) in binary = -20 in decimal Now we know (-x) is actually 2's complement of x. So what he taught is actually to find -x manually. Take prev eg, ~(010011) = (101100) in binary = -(2's complement of 101100) in decimal = -(010100) in decimal = -20 Take other way, ~(-20) = ~(101100)=010011 in binary=(directly) 19 Note: For easiness just assume that instead of 32 bits, there are only 6 bits here.
@javabytharun
@javabytharun 10 часов назад
great explanation, easily understood...............
@placement123
@placement123 11 часов назад
can it be done without extraaa space??
@simmasaiganesh4869
@simmasaiganesh4869 11 часов назад
is there any chance to provide the whole a2z dsa course notes in one pdf file
@ee-jainam7138
@ee-jainam7138 11 часов назад
understood
@tmisgood
@tmisgood 11 часов назад
US
@taqikhan5418
@taqikhan5418 11 часов назад
can be make 2 separate outer loops for arrow pattern * ** *** **** *** ** *
@A_Myth963
@A_Myth963 11 часов назад
this guy deserves every follower he got
@pranavkataria6246
@pranavkataria6246 11 часов назад
understood
@user-vs4ng8ul9x
@user-vs4ng8ul9x 12 часов назад
can anyone tell, while filling the boat why least weights possible are taken first??
@ujjwalagrawalvideos
@ujjwalagrawalvideos 12 часов назад
thanks Striver you have litreally filled my vector<int> dp(10e9,0);
@u-hf5li
@u-hf5li 12 часов назад
one thing I didn't understand is that subsets do not contain duplicates, but in the dry run there may be a case where 2 same elements can be subtracted from the target making the target zero, but this should not be counted as a subset...
@purushottam108
@purushottam108 12 часов назад
class Solution { public: int fun(vector<int>& arr, int goal){ if(goal < 0 ) return 0; int l = 0, r = 0 , cnt = 0; int sum = 0; while(r < arr.size()){ sum += arr[r]; while(sum > goal){ sum -= arr[l]; l++; } cnt += r - l + 1; r++; } return cnt; } int numSubarraysWithSum(vector<int>& nums, int goal) { return fun(nums,goal) - fun(nums,goal - 1); } };
@NeverGive-Up..26
@NeverGive-Up..26 12 часов назад
Understood