BST to greater sum tree | Transform BST to greater sum tree, node = sum of all nodes greater than it

Поделиться
HTML-код
  • Опубликовано: 16 сен 2024
  • Use coupon ALISHA on any GeeksforGeeks course to get 10% discount:
    practice.geeks...
    Connect with me on LinkedIn : / alisha-parveen-80579850
    Check out our other playlists:
    Dynamic Programming:
    • Dynamic Programming
    Trees:
    • Trees
    Heaps and Maps:
    • Heaps and Maps
    Arrays and Maths:
    • Arrays and Maths
    Bit Manipulation:
    • Bit Manipulation
    Greedy Algorithms:
    • Greedy Algorithms
    Sorting and Searching:
    • Sorting and Searching
    Strings:
    • Strings
    Linked Lists:
    • Linked Lists
    Stack and Queues:
    • Stacks and Queues
    Two Pointers:
    • Two pointers
    Graphs, BFS, DFS:
    • Graphs, DFS, BFS
    Backtracking:
    • Backtracking
    Non- DSA playlists:
    Probability:
    • Probability
    SQL-Basic Join functions:
    • SQL - Basic JOIN Funct...
    SQL-Basic Aggregate functions:
    • SQL-Basic Aggregate Fu...

Комментарии • 25

  • @probabilitycodingisfunis1
    @probabilitycodingisfunis1  2 года назад +4

    if(!root)return;
    transformTree(root->right);
    int copy = root->data;
    root->data = sum;
    sum+=copy;
    transformTree(root->left)

  • @fauwazayub
    @fauwazayub 2 месяца назад

    mam the level of patience you have while explaining this problem is just great

  • @Live_and_Let_Live6270
    @Live_and_Let_Live6270 Год назад +1

    Buddy, Your level of patience in explaining the logic for an entire tree is great. Thanks a lot for all your efforts..

  • @sivan2878
    @sivan2878 Год назад +1

    Awesome, thanks for the explanation.

  • @Rajat_maurya
    @Rajat_maurya 2 года назад +1

    completed playlist as an extra question...Thank you

  • @flashpike2298
    @flashpike2298 Месяц назад

    ty, you r best ;)

  • @syedumar9306
    @syedumar9306 Год назад

    Wowww, just wowww

  • @viradchaurasia4224
    @viradchaurasia4224 2 года назад

    Such a Good Explanation...Thankyou 👍 👏

  • @asifbasheerkhan2855
    @asifbasheerkhan2855 2 года назад +1

    Good explanation!

  • @jayeshchaurasiya262
    @jayeshchaurasiya262 Год назад

    Love uhh Mam ❤️

  • @Nishchay-kc1gb
    @Nishchay-kc1gb 2 года назад

    Thanks alisha nice explanations

  • @inspired_enough_to_grow_up
    @inspired_enough_to_grow_up 2 года назад +2

    Hi sis, how is work life balance there?

  • @jaydeepsingh1139
    @jaydeepsingh1139 2 года назад

    Thanks Alisha.

  • @ramg658
    @ramg658 2 года назад +1

    big fan mam big fan

  • @souravdas7741
    @souravdas7741 2 года назад

    nicee

  • @kuvonchbeknormakhmatov
    @kuvonchbeknormakhmatov 3 часа назад

    Obviously, you seem to be in a great hurry. Why don't you slow down a bit ?)

  • @gharshit606
    @gharshit606 2 года назад +1

    Whattt??? I just saw your channel first time, and here is my first impression - I don't get your video at all.. although I have just started with coding, still didn't get the thing that why have you started your video without any context, means for what purpose you are making it...It feels to be kinda very strange to me that a random girl just threw a video related to some coding stuff, speaks too fast, that i can't able to understand what's this video for.

    • @subhrajeetbiswal6942
      @subhrajeetbiswal6942 2 года назад +2

      U need to have prior knowledge about data structure she is making us understand the approach to solve the problem

    • @Abhijeet-st4bj
      @Abhijeet-st4bj 2 года назад +2

      you should first know about BST. What she explained was a medium level question and it requires an ample amount of practice before you understand. and get the gist of it.

  • @977328176
    @977328176 2 года назад

    itna fast kyu jarahe ho thoda slow kuch nahi samjh raha'

  • @dennisallen4380
    @dennisallen4380 2 года назад

    P𝐫O𝕞O𝓢m 🍀

  • @reshmaparveen6679
    @reshmaparveen6679 2 года назад

    Madam u r so fast

  • @ramg658
    @ramg658 2 года назад

    Mam. Marry me..u go to work and I will sit in home counting youtbe views of this channel❤️

    • @subhrajeetbiswal6942
      @subhrajeetbiswal6942 2 года назад +1

      Atleast u should have some influence of having the I'd name of someone who has worked so hard🤣