[CSES][Dynamic Programming] Minimizing Coins

Поділитися
Вставка
  • Опубліковано 8 лис 2024
  • cses.fi/proble...

КОМЕНТАРІ • 17

  • @AmanKumar-nj5sz
    @AmanKumar-nj5sz 2 роки тому +2

    I watch your videos even if I can solve a problem on my own, just to solidify the idea in my head. Great content!

  • @bitoutofcontext
    @bitoutofcontext Рік тому

    your explanation is absolutely amazing, thank u so much

  • @swarajshelavale4830
    @swarajshelavale4830 3 роки тому +1

    I will surely refer your channel to all my collegiate friends...(CP programmers)

  • @infamoustony
    @infamoustony 11 місяців тому +1

    keep it up my man

  • @swarajshelavale4830
    @swarajshelavale4830 3 роки тому +1

    Best Content Bro.....
    Thanks man for such amazing videos....
    Keep gooing....
    Best Wishes

  • @Rajat_maurya
    @Rajat_maurya Рік тому

    bro great thanks for making these videos

  • @gauravkumargupta9622
    @gauravkumargupta9622 Рік тому

    In the last line, what is the use of ? symbol at INF? , what does this symbol do and why you used it here?

  • @swarajshelavale4830
    @swarajshelavale4830 3 роки тому +1

    Which IDE do you use to code ?

  • @programmertik2046
    @programmertik2046 2 роки тому

    Why is this recursive code giving RE for some tc in CSES ??
    Plz help !
    ll miniCoins(ll idx, ll sum, vl &v, vector &dp)
    {
    ll sz = v.size();
    if (idx == 0)
    {
    return sum % v[0] == 0 ? sum / v[0] : 1e8;
    }
    if (dp[idx][sum] != -1)
    {
    return dp[idx][sum];
    }
    ll pk = 1e8;
    if (v[idx]

    • @happydilraj3350
      @happydilraj3350 Рік тому

      bhai iska pta chla tha ky??
      esa ku ho rha

    • @apoorvprakashgupta7437
      @apoorvprakashgupta7437 Рік тому

      changing paratemeters index aur sum hn to 2d dp bnegi , constraint dekho, n=100, sum=1e6, to dp[100][1e6] ki bnegi, lkin ye possible nhi h, 2d vector max 1e6 cells ka ho skta h