Похожие чаты

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 ответов

28 просмотров

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

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

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

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта