Trick Or Treat Codechef Solution || Starters140

Sdílet
Vložit
  • čas přidán 25. 06. 2024

Komentáře • 4

  • @TheBaljitSingh
    @TheBaljitSingh Před 26 dny

    bro how do get idea to use map and specially check m- (reamainder of vector 1) in map??

    • @dustin4047
      @dustin4047  Před 26 dny

      mne dekha ki pehle array k elements me mujhe kuch kmi pd rhi hai ... agr vo kmi Puri ho jaye to mera divisible hojaye m se
      to mene kya kia ki pehle chocolate baat di evenly m=5 bccho me ab meri bchi kuch chocolates hai boxes me unki range kya hogi 0 se leke 4 kyuki agr box me 5 chocolate hui to vo to me baat hi duga.
      ab ye jo mere pass remainders bcche hai inhe mujhe kahi store Krna hai ki kitne box me kitni chocolates hai... jruri ni map use use ...hm esa bhi kr skte hai ki array lele n size ka fir usme index k according vaha count daal de bchi hui chocolates ka.... or traversing candies array k time dekh lia ki jiski mujhe zrurt hai kya vo mere count vale array me present hai ya ni

    • @dustin4047
      @dustin4047  Před 26 dny

      still have doubt then tell me

    • @TheBaljitSingh
      @TheBaljitSingh Před 22 dny

      @@dustin4047 Thanks mere bhai for reply