SST: bit.ly/sst-from-dnbwithsumeet
A word about creation team -
This video is created by Scaler School of Technology. Scaler School of Technology is a transformative educational program focused on Computer Science Engineering. It is something truly revolutionary at this point of time.
To know more, follow this link - bit.ly/sst-from-dnbwithsumeet
Пікірлер
thank u sir
thank you sir
best
need more videos
NEED MORE VIDEOS ON GRAPHS
Impressed how you taught! I was looking for bottomup speacially for star character. I understood it because of you :)
Nice video, Thank you for sharing.
Literally great detailed Insightful video of deriving the formula , Loved it♥
import java.util.*; public class Main { public static void main (String[] args) throws java.lang.Exception { int n = 3; int arr[] = {2,3,6,9,8,3,2,6,2,4,9,9}; int index = printLastIndex(0, arr,8); System.out.println(index); } public static int printLastIndex(int idx ,int arr[],int x) { if ( idx == arr.length){ return -1; } int index = printLastIndex(idx+1,arr,x); if(arr[idx] == x ) { return Math.max(idx,index); }else { return index; } } }
please upload NLP project
you know what after watching striver and some other videos I have came to conclusion that he's the best teacher just not famous enugh
Starting today 20/07/24 ☺️
thanks
Tabular solution -> public static int maxSumOfMNonOverlappingSubarrays(int[] arr, int m, int k) { int n = arr.length; int[] psum = new int[n]; // Calculate prefix sums for subarrays of size K int sum = 0; for (int i = 0; i < k; i++) { sum += arr[i]; } psum[0] = sum; for (int i = k; i < n; i++) { sum = sum + arr[i] - arr[i - k]; psum[i - k + 1] = sum; } // Create DP table int[][] dp = new int[n + 1][m + 1]; // Fill the DP table for (int i = 1; i <= n; i++) { for (int j = 1; j <= m; j++) { dp[i][j] = dp[i - 1][j]; // Case: not taking the current subarray if (i >= k) { dp[i][j] = Math.max(dp[i][j], psum[i - k] + dp[i - k][j - 1]); } } } return dp[n][m]; }
Your code will give wrong output if the input is "abb", This code is not working for passing the test case for not printing duplicate permutations For the correct input, before for loop create a char array[ ], then sort the array & just add one condition after the for loop:- if(i>0 && charArray[ i ]==charArray[ i-1 ]){ continue; }
this is my first video ever seen in your channel you are GOAT(Greatest of all teachers )
Stock market ke jesa lag rha
Superb understood
Is it ok to start from here, if I don't know anything about coding.....
Why only very few KZreadrs have covered this question.
Your videos are too good and great explanation ❤
sir kahan ho aap
first mein thoda confusing laga then jo samajh mein aya last mein bhai waaahhh👏👏👏👏👏
No one puts this much effort on a youtube video knowing that viewers may leave in the middle but he still took the risk because he knew this is the real thing no one explains and it is most needed in recursion. Thank you sir We respect you 🙏.
literally dp kya kamal ki chiz hai... sidhe 2^n se n
one of the toughest questions on leetcode
very few people can explain 3d dp solution
okkkkkkkk
but not okkkk
thank uuu sir
😍😍
thanks sir for making the tough problem so much easy 👌
Wonderful way of teaching great work done sir
try to keep the pace slowly sir it would be good
Such a beautiful video! thanks
great explanation !! keep it up !
Sir last me A 3 ko hate karta hai lekin 3 hi kyu A ko hate karte hai
Thank you very much.. great explanation.
it took time but i understood it very well.
Explanation is awesome.
great explanation.
(b+c-d+(c)) in this case the logic will be wrong...please try again
wonderful explanation I have found in whole youtube. Thank you so muchhhhhhh
Average Formula Is Wrong If the average of the past four values is 8, then the sum of those four values is 8×4=32 Let's say the new number you want to add is 𝑥 When you add this new number, you'll have five values in total. The new average will be the sum of these five values divided by 5. The sum of the five values is 32+𝑥 New Average=(32+𝑥)/5
PEMDAS rule
did it using escape sequence
escape sequence se bhi ho jayega
Awesome question
Day 1
Day 1
Such a waste of time.