2285 Maximum Total Importance of Roads Leetcode| Leetcode Biweekly Contest 79

Поділитися
Вставка
  • Опубліковано 2 лис 2024

КОМЕНТАРІ • 10

  • @maralazizi
    @maralazizi 23 дні тому

    Thank you so much for explanation. much appreciated!

  • @vani.sharmaa
    @vani.sharmaa 4 місяці тому

    thanks!

  • @Saidul0_0
    @Saidul0_0 4 місяці тому

    well explained
    even noob me undersatood

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

    Thanks! very good explanation !

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

    hey, correct me if i am wrong , i don;t think so there is any use of lambda function as the condition you mentioned inside it is the default way in which pairs of vectors are sorted (a.first>b.first). So,simply if we jost sort them in descending order, that will suffice

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

      A normal sort function for descending order will definitely work.

  • @Sa-So
    @Sa-So 2 роки тому

    How many subs do you have ?