Leetcode weekly contest 397 - Video Editorial | Global Rank - 730

  Рет қаралды 255

Aniket More

Aniket More

Күн бұрын

Пікірлер: 8
@udaymourya7322
@udaymourya7322 8 ай бұрын
bro 2nd was very easy if we iterate in reverse order class Solution { public int maximumEnergy(int[] e, int k) { int ans = Integer.MIN_VALUE; for(int i=e.length-1; i>=e.length-k; i--){ int j=i; int temp = 0; while(j>-1){ temp += e[j]; ans = Math.max(ans,temp); j-=k; } } return ans; } }
@aniketmore8789
@aniketmore8789 8 ай бұрын
There are many ways to do this. I just wrote which came to my mind first.
@GauravPatil-js2in
@GauravPatil-js2in 8 ай бұрын
Thank You. 👍👍 I couldn't solve question C in the contest, but now I understand it clearly.
@Gaurav-sj6bd
@Gaurav-sj6bd 8 ай бұрын
Do you have list of standard DP problems?
@munvut877
@munvut877 8 ай бұрын
go to CSES dp section
@aniketmore8789
@aniketmore8789 8 ай бұрын
You can follow cses problem set and atcoder dp contest.
@kkkkkkkkkk811
@kkkkkkkkkk811 8 ай бұрын
Bhaiya i am going to be in 3rd year now after the summer vaccations...mai soch rha hu ki sirf contest du lc aur cf pr..aur dp graphs topic wise kru..bhaiya is it good way..and please could you tell should i participate in CP contest or solely focus on lc contest...i gave div 2 945 today..Could not even solve A ...please suggest what should i do..
@aniketmore8789
@aniketmore8789 8 ай бұрын
Participate in every contest possible.
Implement Trie (Prefix Tree) - Leetcode 208
18:56
NeetCode
Рет қаралды 225 М.
Next Permutation - Intuition in Detail 🔥 | Brute to Optimal
28:15
take U forward
Рет қаралды 522 М.
The LeetCode Fallacy
6:08
NeetCode
Рет қаралды 604 М.
Think Fast, Talk Smart: Communication Techniques
58:20
Stanford Graduate School of Business
Рет қаралды 44 МЛН
CODEFORCES Round 996 Div. 2 Solutions ABC
1:04:56
CP_Titans
Рет қаралды 75
Fast Inverse Square Root - A Quake III Algorithm
20:08
Nemean
Рет қаралды 5 МЛН
Dynamic Programming isn't too hard. You just don't know what it is.
22:31
DecodingIntuition
Рет қаралды 244 М.
Binary Exponentiation Explained | Competitive Programming
37:43