Codechef Starters 159 | Video Solutions - A to H | by Raghav Goel | TLE Eliminators

Поділитися
Вставка
  • Опубліковано 19 січ 2025

КОМЕНТАРІ • 21

  • @TLE_Eliminators
    @TLE_Eliminators  2 місяці тому +2

    Please fill the Feedback form for PCD: forms.gle/49DgBUSHtkfCsP1e7

  • @omkarmore4488
    @omkarmore4488 2 місяці тому +6

    Where is 158

  • @dhawalshinde124
    @dhawalshinde124 2 місяці тому +1

    the approach to calc largest divisors really helped me. i was getting tle due to this.

  • @priyanshusingh3208
    @priyanshusingh3208 2 місяці тому +2

    In Random Nim question we can remove any number of stones >=1 from exactly one pile it is not necessary that every turn any player will remove only 1 stone .

    • @itzzRaghav
      @itzzRaghav 2 місяці тому

      Problem stated "exactly one stone" in the problem statement

    • @Shaunak...
      @Shaunak... 2 місяці тому

      @@itzzRaghav atleast one

    • @raulboy5031
      @raulboy5031 2 місяці тому

      @@itzzRaghav it's exactly one pile

    • @lineofcode2829
      @lineofcode2829 2 місяці тому

      @priyanshusingh3208 yes exactly.... I was thinking maybe a player can remove an entire pile ....... But after the video explanation it only makes sense that the last stone matters

    • @ymlikescp
      @ymlikescp 2 місяці тому

      Probability of removing last pile and last stone remains same...

  • @Abhishek-e6d2c
    @Abhishek-e6d2c 2 місяці тому +1

    You should have explained the crafting coloring(Hard Version).Really wanted t o know the complete approach

    • @itzzRaghav
      @itzzRaghav 2 місяці тому

      My approach was complicated and would've been quite difficult to explain and PCD had already gone too long, so I recommended the text editorial

  • @GeekStar-b4j
    @GeekStar-b4j 2 місяці тому +1

    please suggest some resources for maths required in cp

    • @itzzRaghav
      @itzzRaghav 2 місяці тому +2

      Utkarsh Gupta has created a video on UA-cam for this

  • @Anime106J
    @Anime106J 2 місяці тому

    i didn't get that how we got 3 for 18, as 18->2->1, since the largest divisor of 18 is 9. HElp me

    • @Anime106J
      @Anime106J 2 місяці тому

      sorry a dumb comment, i get it know

  • @Parship-o6v
    @Parship-o6v 2 місяці тому

    what if I not use Sort in Election question?

    • @SatyamYadav-wh1zf
      @SatyamYadav-wh1zf 2 місяці тому +1

      Suppose,
      X=10
      And you have this values (b[i]-a[i]+1)
      10 3 7
      If you sort it then
      3 7 10
      And the count of votes would have been previous + 2 ( 3+7=X)
      And if don't sort it
      10 3 7
      Then only first value would have been considered which is not optimal for the answer

  • @himanshutiwari3442
    @himanshutiwari3442 2 місяці тому +1

    super Hero code is not provided

  • @IRONMAN-co7qg
    @IRONMAN-co7qg 2 місяці тому +1

    Div 4 ?

  • @Deviliitian-7357
    @Deviliitian-7357 2 місяці тому

    Bhaiya samjhane ka man na raha kare to mat samjhaya karo ,random nim wale question ko aap samjha nahi rahe the aap sirf jo likh rahe the usi ko repeat kare de rahe the , bhaiyaa acche se samjha doge to kya chala jayega koi kaam kar rahe ho to acche se kardo😢😢😢😢😢😢

    • @itzzRaghav
      @itzzRaghav 2 місяці тому +1

      Sorry, at first I wasn't sure ki logo ko samajh aya hoga ya nhi, so I repeated and tried to approach the problem as how a low rated coder should've approached.