Leetcode | Biweekly Contest 134 | A | B | C | D | 3206 | 3207 | 3208 | 3209 | Editorial | Solution
Вставка
- Опубліковано 12 лип 2024
- Leetcode | Biweekly Contest 134 | A | B | C | D | 3206 | 3207 | 3208 | 3209 | 3206. Alternating Groups | 3207. Maximum Points After Enemy Battles | 3208. Alternating Groups II | 3209. Number of Subarrays With AND Value of K | Editorial | Solution
3207. Maximum Points After Enemy Battles Solution : leetcode.com/contest/biweekly...
3208. Alternating Groups II Solution : leetcode.com/submissions/deta...
3209. Number of Subarrays With AND Value of K Solution :
leetcode.com/submissions/deta...
Biweekly Contest 134
3207. Maximum Points After Enemy Battles
3208. Alternating Groups II
3209. Number of Subarrays With AND Value of K
3207
3208
3209
#134
#Biweekly Contest 134
#B
#C
#D
#3207
#3208
#3209
#MaximumPointsAfterEnemyBattles
#AlternatingGroupsII
#NumberofSubarraysWithANDValueofK
#inversion
#leetcode
#3176
#3177
#BiweeklyContest
#132
#dp
#segmenttree
#lazypropogation
#hindisolution
#ProgrammingTutorial
#AlgorithmExplanation
#StringManipulation
#codinginhindi
#dynamicprogramming
#CodeChefContest
#problemsolving
#BinaryStrings
#programminginhindi
#CompetitiveProgrammingTutorial
#AlgorithmExplanationInHindi
#StringManipulationTutorial
#codingtutorial
#HindiCodingTutorial
#CodeChefContest
#problemsolving
#BinaryStrings
#programminginhindi
#CompetitiveProgrammingTutorial
#AlgorithmExplanationInHindi
#StringManipulationTutorial
#codingtutorial
#HindiCodingTutorial
#algorithmanalysis
#programminglogic
#problemsolvingtechniques
#StringManipulationTechniques
#codeexplanation
#HindiProgrammingTutorial
#codingtips
#programmingeducation
#OnlineProgrammingContest
#ProgrammingSkills
#computersciencetutorial
00:00 3207.Maximum Points After Enemy Battles
10:20 3208. Alternating Groups II
21:15 3209. Number of Subarrays With AND Value of K
01:00 Problem B
10:23 Problem C & A
21:15 Problem D
Thanks
bhaiya aap bhot mst smjhate ho
Thankyou Brother
@@pretestpassed157 bhaiya m apne sare doston ko recomend krunga aapka channel
I tried so solve the second problem in same approach but got TLE on last 4 test cases... I was linearly Incrementing the points and linearly subtracting the current power
Nice, your logic was correct.
Bro weekly contest ka v solution le aao
Always found my leetcode solution here😍
Thankyou
best explination found
Thankyou
Nice Solution, thanks for uploading
Thankyou
thankss man you are doing great work
Thankyou
superb
Thankyou
Thanks for uploading 🎉
Thankyou
Just waiting for the solution
Thankyou
For Q3 in Java we will create a new array with appended elements right ?. kyunki us me vector jaisa to nai hai so.
Yes you can. And even In Java, you can create a dynamic array with append functionality using the ArrayList class from the java.util package. ArrayList provides a flexible array-like structure that can grow dynamically as you add elements.
@@pretestpassed157 Yup Had confusion if thats the right thing or not . Thanks 😃.
Problem B why we add all the remaining elements in toe energy and how the answer is accurate or correct
Please help
Because to increase the point you have to use operation 1 and in operation 1 we are actually subtracting the enemy energy with my current energy, So from this you get to know that If the value of current energy is more point will also be more. So to increase the current energy we are adding its value with all the remaining elements.
@@pretestpassed157 got it bro nicely explained 👍 voi hai kisi se bhi lad lo point toh ek hi plus hona hai
Yes, Thankyou