L -122 Chocolate distribution problem | sliding window | java dsa | gfg

Sdílet
Vložit
  • čas přidán 7. 01. 2024
  • Problem Name:
    Chocolate Distribution Problem
    Problem Statement:
    Given an array A[ ] of positive integers of size N, where each value represents the number of chocolates in a packet. Each packet can have a variable number of chocolates. There are M students, the task is to distribute chocolate packets among M students such that :
    1. Each student gets exactly one packet.
    2. The difference between maximum number of chocolates given to a student and minimum number of chocolates given to a student is minimum.
    Problem link:
    www.geeksforgeeks.org/problem...
    Java Plus DSA Placement Course Playlist:
    • Java and DSA Course Pl...
    Java Plus DSA Sheet:
    docs.google.com/spreadsheets/...
    Notes:
    github.com/Tiwarishashwat/Jav...
    Telegram Link:
    shashwattiwari.page.link/tele...
    Ultimate Recursion Series Playlist:
    • Recursion and Backtrac...
    Instagram Handle: (@shashwat_tiwari_st)
    shashwattiwari.page.link/shas...
    Samsung Interview Experience:
    • I cracked Samsung | SR...
    Company Tags:
    Facebook | Amazon | Microsoft | Netflix | Google | LinkedIn | Pega Systems | VMware | Adobe | Samsung
    Timestamp:
    0:00 - Introduction
    #ShashwatTiwari #coding​​ #problemsolving

Komentáře • 2

  • @shivampathak6635
    @shivampathak6635 Před 4 měsíci

    Sir you are true gem💎 for sure!! I had watched number of videos of sliding video.. but this playlist is ❤.. please continue your job sir .. Please contribute everything in Java with dsa..

  • @kosuribalaji317
    @kosuribalaji317 Před 4 měsíci

    Thank you