826. Most Profit Assigning Work | 5 Approaches | Greedy | Binary S | Priority Queue | 2 Pointer | DP

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 มิ.ย. 2024
  • In this video, I'll talk about how to solve Leetcode 826. Most Profit Assigning Work | 5 Approaches | Binary Search | Priority Queue | 2 Pointer | DP | Greedy
    Let's Connect:
    📱Discord (Join Community) : / discord
    📝Linkedin: / aryan-mittal-0077
    📸 Instagram: / codewitharyanbhai
    💻 Twitter - / aryan_mittal007
    🤖 Github: github.com/aryan-0077
    About Me:
    I am Aryan Mittal - A Software Engineer in Goldman Sachs, Speaker, Creator & Educator. During my free time, I create programming education content on this channel & also how to use that to grow :)
    ✨ Hashtags ✨
    #programming #Interviews #leetcode #faang #maang #datastructures #algorithms

ความคิดเห็น • 37

  • @ARYANMITTAL
    @ARYANMITTAL  12 วันที่ผ่านมา +1

    Segment Tree Crash Course - th-cam.com/video/NofRIGE7oWU/w-d-xo.html
    When are you ready for FAANG - th-cam.com/video/h71X1VMo5J0/w-d-xo.html

    • @pratikshahire4403
      @pratikshahire4403 12 วันที่ผ่านมา

      Hey! What's your codeforces handle?

  • @shivateja1499
    @shivateja1499 12 วันที่ผ่านมา +13

    he makes every solution very complex to undertsand

  • @ritikmandal7599
    @ritikmandal7599 7 วันที่ผ่านมา

    very well explained and also covered the other cases as well. amazing, keep it up!

  • @vaibhav7480
    @vaibhav7480 3 วันที่ผ่านมา

    God damn the value you provide through these videos is Immeasureable, thanks a lot dude

  • @sundaramagnihotri5896
    @sundaramagnihotri5896 12 วันที่ผ่านมา +5

    Already done today's leetcode question

    • @ARYANMITTAL
      @ARYANMITTAL  12 วันที่ผ่านมา +3

      Yeah, that’s the spirit🫡❤️

  • @vaishnaviagrawal1905
    @vaishnaviagrawal1905 12 วันที่ผ่านมา

    kitna sahi samjhaya h .........👍👍

  • @kergeysarjakin5592
    @kergeysarjakin5592 12 วันที่ผ่านมา +6

    bro ye question IPO jaisa nahi hai almost

  • @ManojKumarManuSai
    @ManojKumarManuSai 12 วันที่ผ่านมา

    Feeling motivated, great explanation brother.

  • @chaitanyaamajala2582
    @chaitanyaamajala2582 12 วันที่ผ่านมา

    Bro i think for the for loop it will be i < n

  • @PulkitAgg13
    @PulkitAgg13 12 วันที่ผ่านมา +1

    How did you develop such thinking ability? Please tell.

  • @user-fq7ux2qk5f
    @user-fq7ux2qk5f 12 วันที่ผ่านมา

    This Problem is great! Great learning though I didn't understood the dp solution ( I don't have a good grip on recursion and dp topic ) Definately comeback and try the dp solution.

    • @benzene___
      @benzene___ 10 วันที่ผ่านมา

      learn how radix and counting sort works, you will get the last one ;)

  • @screensipsofficial
    @screensipsofficial 12 วันที่ผ่านมา

    Great explaination 👌👌

  • @ganeshjaggineni4097
    @ganeshjaggineni4097 12 วันที่ผ่านมา

    NICE SUPER EXCELLENT MOTIVATED

  • @RohitKumar-hn6wj
    @RohitKumar-hn6wj 12 วันที่ผ่านมา

    thank you.

  • @vijayns1900
    @vijayns1900 12 วันที่ผ่านมา

    sir can i know, why pair and vector is used instead of hashmap?

  • @JIGARSINGTHAKOR-yy6qp
    @JIGARSINGTHAKOR-yy6qp 12 วันที่ผ่านมา

    Bhaiya is "cracking the coding interview " book is worth to buy in 2024???

  • @anuverma1486
    @anuverma1486 12 วันที่ผ่านมา

    r..r..r..r..right!!

  • @arnavkaul7827
    @arnavkaul7827 12 วันที่ผ่านมา

    Maqsad nhi bhulna hai?? I'm sold brother

  • @kergeysarjakin5592
    @kergeysarjakin5592 12 วันที่ผ่านมา

    class Solution {
    public:
    int maxProfitAssignment(vector& difficulty, vector& profit, vector& worker) {
    int n = worker.size();
    vector v(n);
    priority_queue pq;
    int ans = 0;
    for(int i=0;i

    • @kergeysarjakin5592
      @kergeysarjakin5592 12 วันที่ผ่านมา

      Some minor changes in IPO code and it worked

  • @-RakeshDhilipB
    @-RakeshDhilipB 12 วันที่ผ่านมา

    18:32 how come O(m+n) complexity

  • @prakhargarg4166
    @prakhargarg4166 12 วันที่ผ่านมา +4

    why don't you put timeline in video

    • @saiei
      @saiei 12 วันที่ผ่านมา +3

      my man is fast in words but lazy at work, makes him suitable for manager XD

    • @Engineering.Wallah
      @Engineering.Wallah 12 วันที่ผ่านมา +1

      Bhai tu bhi daal sakta hai

  • @prathamreddy37
    @prathamreddy37 12 วันที่ผ่านมา

    After sorting 24,66,99 how did it become 66 99 and 24?

  • @atharv1510
    @atharv1510 12 วันที่ผ่านมา

    class Solution {
    public:
    int maxProfitAssignment(vector& difficulty, vector& profit, vector& worker) {
    int tprofit=0;

    for(int i=0;i

  • @PalakKalsi
    @PalakKalsi 12 วันที่ผ่านมา +1

    Used the same logic as IPO.

  • @PATNAMGNANASAI
    @PATNAMGNANASAI 12 วันที่ผ่านมา