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

КОМЕНТАРІ • 29

  • @gyanikumari4973
    @gyanikumari4973 6 днів тому +4

    01:00 Problem B
    10:23 Problem C & A
    21:15 Problem D

  • @anupthakur489
    @anupthakur489 4 дні тому +2

    bhaiya aap bhot mst smjhate ho

    • @pretestpassed157
      @pretestpassed157  4 дні тому +1

      Thankyou Brother

    • @anupthakur489
      @anupthakur489 4 дні тому +1

      @@pretestpassed157 bhaiya m apne sare doston ko recomend krunga aapka channel

  • @sahilprasad4417
    @sahilprasad4417 6 днів тому +3

    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

  • @workonedu3535
    @workonedu3535 6 днів тому +1

    Always found my leetcode solution here😍

  • @anuraggoswami3534
    @anuraggoswami3534 3 дні тому +1

    best explination found

  • @narendersinghpawar2012
    @narendersinghpawar2012 6 днів тому +1

    Nice Solution, thanks for uploading

  • @Rade34
    @Rade34 5 днів тому +1

    thankss man you are doing great work

  • @Anonymous-bg7if
    @Anonymous-bg7if 6 днів тому +1

    superb

  • @gyanikumari4973
    @gyanikumari4973 6 днів тому +1

    Thanks for uploading 🎉

  • @reactcode9148
    @reactcode9148 6 днів тому +1

    Just waiting for the solution

  • @rv5778
    @rv5778 5 днів тому +2

    For Q3 in Java we will create a new array with appended elements right ?. kyunki us me vector jaisa to nai hai so.

    • @pretestpassed157
      @pretestpassed157  5 днів тому

      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.

    • @rv5778
      @rv5778 5 днів тому +1

      @@pretestpassed157 Yup Had confusion if thats the right thing or not . Thanks 😃.

  • @AbhishekSharma-wg2oc
    @AbhishekSharma-wg2oc 6 днів тому +1

    Problem B why we add all the remaining elements in toe energy and how the answer is accurate or correct
    Please help

    • @pretestpassed157
      @pretestpassed157  6 днів тому

      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.

    • @AbhishekSharma-wg2oc
      @AbhishekSharma-wg2oc 6 днів тому +1

      @@pretestpassed157 got it bro nicely explained 👍 voi hai kisi se bhi lad lo point toh ek hi plus hona hai

    • @pretestpassed157
      @pretestpassed157  6 днів тому

      Yes, Thankyou