third question ko same LIS type se solve kr sakte hai just change checking condition, (arr[i]+arr[j])%k varies from 0 to k-1, so we can make any sequence with remainder 0 or 1 or 2 or upto k-1, and take max sequence among all, int dp[][] = new int[n][k]; // where dp[i][rem] is sequence that ends at i and satisfy (seq[i]+seq[i+1])%k==rem for(int row[]:dp){ Arrays.fill(row,1); } int maxi = 1; for(int i=1;i
3rd question same to same google ke ek prev OA me aaya hai aur mene kar rakha tha lekin contest nhi de paya aur discussion bhi attend nhi kar paya abhi dekha to yaad aaya
bhaiya the way you teach with so much of energy and your jokes during the session, resources that you share in between , the way to think about the approach is just awesome
pls make videos on codeforces contests..
third question ko same LIS type se solve kr sakte hai just change checking condition, (arr[i]+arr[j])%k varies from 0 to k-1, so we can make any sequence with remainder 0 or 1 or 2 or upto k-1, and take max sequence among all,
int dp[][] = new int[n][k]; // where dp[i][rem] is sequence that ends at i and satisfy (seq[i]+seq[i+1])%k==rem
for(int row[]:dp){
Arrays.fill(row,1);
}
int maxi = 1;
for(int i=1;i
3rd question same to same google ke ek prev OA me aaya hai aur mene kar rakha tha lekin contest nhi de paya aur discussion bhi attend nhi kar paya abhi dekha to yaad aaya
1:23:00
kisi ko pta hai kya ki ye topics striver ne A2Z sheet mein kyon nhi karae?
bhaiya the way you teach with so much of energy and your jokes during the session, resources that you share in between , the way to think about the approach is just awesome
bhaiya codeforces ka bhi kiya kijiye
please made video available in atleast hd
Where can we find your codes for this contest?
Nice Stream Man
Keep it Up
Bhaiya segment tree kyu hata diya 😢
Bhaiya codeforces please
1080p pls
Support ++