1701. Average Waiting Time | Leetcode Daily Challlenge | Arrays | DSA | Hindi

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

Komentáře • 14

  • @shashwat_tiwari_st
    @shashwat_tiwari_st  Před 2 měsíci +6

    like target is 90. Please do like, if you understood the solution😄😄

    • @Nishant89-i2z
      @Nishant89-i2z Před 2 měsíci

      linkedin pe tag kardunga daily solve karne pe

  • @GirjeshSharma-zv3xo
    @GirjeshSharma-zv3xo Před 2 měsíci +2

    Love from Australia❤

  • @kumaraniket1640
    @kumaraniket1640 Před 2 měsíci +1

    really solving leetcode problem has been this much easy thank you for the proper explaination big fan sir , can you please make playlist on AWS fundamentals and also hand-on experience on it

  • @RahulKumar-et4pm
    @RahulKumar-et4pm Před 2 měsíci

    basic question of cpu scheduling of Operating System.

  • @saisree04
    @saisree04 Před 2 měsíci

    Thank youu, your explanation is super simple and easy to follow. I am glad that i found your channel.

  • @a3rdtierguy864
    @a3rdtierguy864 Před 2 měsíci +1

    If someone solved merge interval he will definitely able to solve this.

  • @RohitKumar-dz8dh
    @RohitKumar-dz8dh Před 2 měsíci

    Thanks 😊

  • @keshavgupta9174
    @keshavgupta9174 Před 2 měsíci

    class Solution {
    public double averageWaitingTime(int[][] customers) {
    int n = customers.length;
    double totalWaitTime = 0;
    int currTime = 0;
    for (int[] customer : customers) {
    int arrivalTime = customer[0];
    int cookTime = customer[1];
    if (currTime < arrivalTime) {
    currTime = arrivalTime;
    }
    int waitTime = currTime + cookTime - arrivalTime;
    totalWaitTime += waitTime;
    currTime += cookTime;
    }
    return totalWaitTime / n;
    }
    }

  • @PiyushSharma-we8yd
    @PiyushSharma-we8yd Před 2 měsíci

    aaj ka ho gya tha, mai attendance lagane aaya hu🤩🤩

  • @adarshjain3058
    @adarshjain3058 Před 2 měsíci +1

    attendance++;

  • @thAsciNileshPal
    @thAsciNileshPal Před 2 měsíci +1

    samjhate theek ho ,but thoda dheere samjhaya kro ; bhaot speed me expalin karte ho ...time leke explain kiya kro

    • @shankitkumar820
      @shankitkumar820 Před měsícem +1

      No, His speed is just fine. If he will make long videos of each question then no one will get interested as every video will be atleast half hour long. I would recommend you to try each and every step yourself and ask doubt on comment section.

    • @thAsciNileshPal
      @thAsciNileshPal Před měsícem

      @@shankitkumar820 ha to khudse hi to kar raha code , konsa sir muje type kar k de rahe