Leetcode 2392. Build A Matrix With Conditions | Weekly Contest 308.

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

Komentáře • 39

  • @probabilitycodingisfunis1

    vector buildMatrix(int k, vector& rowConditions, vector& colConditions) {
    vectorrow_order = kahn(rowConditions, k+1); //[1,4,3,2]
    vectorcol_order = kahn(colConditions, k+1); // [1,4,2,3]
    // map -> {1 :0, 4:1, 2:2, 3:3}
    unordered_mapm;
    if(row_order.size()

  • @maharshiagola3998
    @maharshiagola3998 Před 2 lety +3

    Awesome video ma'am! Thanks for the great explanation, owe my career to you

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

    Thankyou so much! This literally cleared so many doubts not only regarding the question but also regarding writing clean codes with c++

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

    Leetcode POTD. Good explanation. Thank you.

  • @zishan53
    @zishan53 Před rokem +1

    Mam please aap bhot dino se active nhi hai contest review nhi de rhi hai ...Aap ka content bhot hi acha hota hai please post video on Leetcode contests

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

    actually pretty good Explanation !

  • @sayyadazeem8781
    @sayyadazeem8781 Před 2 lety +1

    Awesome explanation
    U made hard prblm easy by ur explanation.
    Thank u so much. Please Keep making videos for upcoming contests also

  • @himu1901
    @himu1901 Před 2 lety +1

    Thanks for such nice explanation!

  • @raushankumar6993
    @raushankumar6993 Před 11 měsíci

    thanks

  • @pranaynagpure2804
    @pranaynagpure2804 Před 2 lety +1

    great solution, i was thinking of calculating all topo sorts and then matching row and column conditions , also canyou please mention complexity of algo

  • @vinodhkumar5329
    @vinodhkumar5329 Před 2 lety

    addicted to this channel.Thank you so much mam

  • @Hunting996
    @Hunting996 Před 2 lety

    I'll probably not get an answer but still, when I opened my soft Roll I couldn't place the "notes" or however you call them that finely, by

  • @systemflaws
    @systemflaws Před 2 lety +1

    It would be beneficial if you also mentioned time and space complexity. Also, many thanks for your clear explanation!

  • @surajitroy_roll-5023
    @surajitroy_roll-5023 Před 2 lety

    Mind Blowing

  • @aryangrover7475
    @aryangrover7475 Před 2 lety

    Amazing Explanation

  • @zishan53
    @zishan53 Před rokem +1

    Maam Please aaap Leetcode contest ka discussion krriye Ma'am

  • @Sanyamjain77
    @Sanyamjain77 Před 2 lety

    The explanation was very good.
    Thanks for this solution video.

  • @Rahulkumar-op9lu
    @Rahulkumar-op9lu Před 2 lety

    nice explanation you made it easy problem .looking forward to learn lot from you

  • @syedarfath9298
    @syedarfath9298 Před 2 lety

    Amazing explanation.
    How did you deduced this problem is a graph problem. Is it because of ordering of numbers, leading to topological sort?

  • @kwakukusi4094
    @kwakukusi4094 Před 2 lety

    i love this channel

  • @prithvijitbasak
    @prithvijitbasak Před 2 lety

    God level explanation. 🔥🔥

  • @sahilanand30
    @sahilanand30 Před 2 lety +1

    Nicely explained
    Can you please share some good resource to learn graph

    • @probabilitycodingisfunis1
      @probabilitycodingisfunis1  Před 2 lety +1

      @Sahil Anand, would recommend GeeksforGeeks / Abdul Bari's CZcams Channel / Prateek Narang course on Graphs on Udemy

    • @gmgrhythm2284
      @gmgrhythm2284 Před 2 lety

      code n code graph series

  • @reshmaparveen6679
    @reshmaparveen6679 Před 2 lety

    Tqs ali i m yr big fan 🎉🎉

  • @AmanSharma-vb5jl
    @AmanSharma-vb5jl Před 2 lety

    Hey Alisha, Interview me DP me "top down with memorization" approach se batane se kam chal jata h kya ya phir interviewer ko "bottom up iterative" bhi chahiye hota h

  • @madhukarkumar2668
    @madhukarkumar2668 Před 2 lety

    HEY YOU soft LIKE AI AND TNice tutorialS VID SO HELPFUL

  • @sefou519
    @sefou519 Před 2 lety

    Sa here bro

  • @MGtvMusic
    @MGtvMusic Před 2 lety

    Java solution
    class Solution {
    public int[][] buildMatrix(int k, int[][] rowConditions, int[][] colConditions) {

    List rowOrder = topoSort(rowConditions,k);
    List colOrder = topoSort(colConditions,k);

    if(rowOrder.size()

  • @tanaymalik4778
    @tanaymalik4778 Před 2 lety

    di ab toh apka placement ho gaya, phir kyun practice kar rahe?