Похожие чаты

Hi guys this is c++ preorder(VLR) code in binary tree,

can someone explaine how it works? (actually i coded this randomly, it working true but i dont know how 😂😂)
here 2 recursice preorder going to stack? can some one draw the work of this 2 recursive function in paper or...

25 ответов

24 просмотра

Bro @usernamestring She is admin from here and she don't like someone ask Data Structures Questions Here You can Google your problem it's a batter idea

I am also Google my all questions

Looks like a basic recursive function, does what it does 😏

Binary Tree related to DS

Pre-order related to Binary Tree

M.S- Автор вопроса
Brian
Looks like a basic recursive function, does what i...

there is 2 recursive function inside a function my question is , who going to stack , and who call first?

M.S- Автор вопроса
M.S
there is 2 recursive function inside a function my...

It starts from llink, so goes depth first left, then starts slowly moving to the right of the tree.

1) I am a man, you are a fellow indian, come on, how do you not know this? :D 2) That is obviously C++ related. What you sent was a question paper on DSA, which could be solved in any language.

the call to first preorder(p->llink) expression

M.S
there is 2 recursive function inside a function my...

you can see this in action here: https://pythontutor.com/cpp.html, remove the templates obviously replace T with int. if a debugger is too much

M.S- Автор вопроса
Manav | avoid unnecessary messaging me
the call to first preorder(p->llink) expression

actually my question is, here we have Preorder(p llink) Preorder(p rlink) Imagine that this function calling 2 times { Preorder(p llink) Preorder(p rlink) } SO this cycle going 2 times, And p llink and P rlink calling 4 times in total, true? And the recursive function going to stack, Here first function going to stack or second(cause these 2 functions calling sequently)? I hope that u undrestand my question

M.S
actually my question is, here we have Preorder(p l...

it would be much easier to see this in a debugger, yes it'll first go through it two times. left one's first. then the call stackwill unwind and then you go through the right ones

M.S- Автор вопроса
Manav | avoid unnecessary messaging me
you can see this in action here: https://pythontut...

i think it will help me thanks, preorder(p->llink); preorder(p->rlink); the preorder(p->rlink) is the under of preorder(p->llink) i think i aske my question better, so the preorder(p) calling preorder(p->llink) and preorder(p->link) calling preorder(p->link->link) , soooo, when the preorder(p->rlink) will call? cause preorder(p->link) is above that

M.S- Автор вопроса
M.S
i think it will help me thanks, preorder(p->llink)...

it's quite easy, just see it in action in that site or a debugger. You'll immediately get how it works

Похожие вопросы

Обсуждают сегодня

Страшнейшая правда про списки ЦБ. С первых дней жизни P2P сферы, молодые человеки, начитавшись законодательной базы и "внутренних" документов, решили, что им противостоит сер...
Foxcool
2
Ребят в СИ можно реализовать ООП?
Николай
32
Добрый вечер, Пока не совсем понимаю как наладить общение между телеграм ботом и ПО для работы с сим боксом. По самому боту так понял: - Нужен некий баланс, который можно поп...
Magic
6
~ 2m21s  nix shell github:nixos/nixpkgs#stack ~  stack ghc -- --version error: … while calling the 'derivationStrict' builtin at /builtin/derivation.nix:...
Rebuild your mind.
6
Всем доброго вечера. Разрабатываю 32 раз. приложение в Delphi. Столкнулся с тем, что стандартный  TFilestream  не работает с большим файлом > 2 ГБайт (после вызова функции see...
Vadim Gl
15
Hey everyone! I won’t focus too much on what this person said (it’s clear they don’t understand the scope of what TF and TELOSX are achieving), but I’ll put it simply for thos...
Ana Ojeda
3
добрый день. Подскажите, есть сайт на 1.4.7 и я хочу обновиться, особо ничего не меняя. мне выбирать версию 1.4.35 или третью ветку? и можно ли обновлять "как есть", или нужно...
Digital Cat
12
народ, плиз хелп, всю голову сломал себе уже... разве может быть так, что GetProcAddress( GetModuleHandle( "kernel32.dll" ), "SetThreadDescription" ) вернёт ненулевое значение...
Iluha Companets
12
Hello everyone. Pleasure to have found ergo! What‘s the best way to buy? Thanks in advance!
Klaus
11
Ready for some fun AND a chance to win TKO Tokens? Join us for exciting minigames in our Telegram group! 🕒 Don’t miss out—games start on today 25 October 2024, at 8 PM! Ge...
Milkyway | Tokocrypto
255
Карта сайта