Login
Register
@
Dark Mode
Profile
Edit my Profile
Messages
My favorites
Register
Activity
Q&A
Questions
Unanswered
Tags
Subjects
Users
Ask
Previous Years
Blogs
New Blog
Exams
Dark Mode
I have a doubt in this Question , please give me hint
abhi1998
asked
in
Algorithms
Sep 13, 2021
retagged
Jul 23, 2022
by
Shubham Sharma 2
220
views
1
vote
1
vote
In a randomised BST is constructing with 7 distinct elements . What is the probability that its Inorder and postOrder traversal are same
algorithms
binary-search-tree
abhi1998
asked
in
Algorithms
Sep 13, 2021
retagged
Jul 23, 2022
by
Shubham Sharma 2
by
abhi1998
220
views
answer
comment
Follow
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
0
votes
0
votes
I think the answer is 1/(7!)
If any node (N) has a right child (R), then in-order will visit (N) before (R) and post-order will visit (R) before (N). Hence the only way the traversals are the same is if all the nodes have only left children.
Joey
answered
Nov 7, 2022
by
Joey
comment
Follow
share this
0 Comments
Please
log in
or
register
to add a comment.
← Previous
Next →
← Previous in category
Next in category →
Related questions
0
votes
0
votes
0
answers
1
tishhaagrawal
asked
in
Operating System
Dec 4, 2023
378
views
MadeEasy Test Series 2024 - In this question they have asked about the number of context switches that are happening. (Excluding the first and the last context switch). I am getting the answer as 5, according to the answer key it should be 6. I am not pre-empting process P when Q arrives as P has a higher priority than Q, in the solutions they have done the exact opposite, can anyone please tell me whether my approach is correct or I am missing onto something.
tishhaagrawal
asked
in
Operating System
Dec 4, 2023
by
tishhaagrawal
378
views
gate-preparation
operating-system
made-easy-test-series
process-scheduling
self-doubt
test-series
process
0
votes
0
votes
0
answers
2
`JEET
asked
in
Databases
Dec 13, 2018
217
views
I have lot of confusion in this question. Please help me this in solving with correct procedure.
Please help me in solving this question. Very confusing. Question No. 19. Made Easy Work Book.
`JEET
asked
in
Databases
Dec 13, 2018
by
`JEET
217
views
1
vote
1
vote
1
answer
3
Sahil Vidyarthi
asked
in
Programming in C
Aug 23, 2014
1,308
views
I have been struggling with pointers in multi-dimensional arrays. Please help me with this code :-
Explain the output :- int b[3][4] = {{1,2,3,4}, {5,6,7,8}, {9,10,11,12}}; int** p; p = (int**)b; cout << (long)*p << "\t" << (long)(*p+1) << "\t" << (long)(*p+2); //long is used to print the output in decimal format instead of hex
Sahil Vidyarthi
asked
in
Programming in C
Aug 23, 2014
by
Sahil Vidyarthi
1.3k
views
programming
programming-in-c
pointers
non-gate
0
votes
0
votes
0
answers
4
akashp12
asked
in
Site Issues
Dec 31, 2023
245
views
Hi sir, this is Akash, I'm trying to attempt the AIMT from 9:30 but I can't ,so please resolve this as soon as possible I'm waiting from 2months to give the AIMT, so please help me.
akashp12
asked
in
Site Issues
Dec 31, 2023
by
akashp12
245
views
Subscribe to GATE CSE 2024 Test Series
Subscribe to GO Classes for GATE CSE 2024
Quick search syntax
tags
tag:apple
author
user:martin
title
title:apple
content
content:apple
exclude
-tag:apple
force match
+apple
views
views:100
score
score:10
answers
answers:2
is accepted
isaccepted:true
is closed
isclosed:true
Recent Posts
Post GATE 2024 Guidance [Counseling tips and resources]
GATE CSE 2024 Result Responses
[Project Contest] Pytorch backend support for MLCommons Cpp Inference implementation
Participating in MLCommons Inference v4.0 submission (deadline is February 23 12pm IST)
IIITH PGEE 2024 Test Series by GO Classes
Subjects
All categories
General Aptitude
(3.5k)
Engineering Mathematics
(10.4k)
Digital Logic
(3.6k)
Programming and DS
(6.2k)
Algorithms
(4.8k)
Theory of Computation
(6.9k)
Compiler Design
(2.5k)
Operating System
(5.2k)
Databases
(4.8k)
CO and Architecture
(4.0k)
Computer Networks
(4.9k)
Artificial Intelligence
(79)
Machine Learning
(48)
Data Mining and Warehousing
(25)
Non GATE
(1.4k)
Others
(2.7k)
Admissions
(684)
Exam Queries
(1.6k)
Tier 1 Placement Questions
(17)
Job Queries
(80)
Projects
(11)
Unknown Category
(870)
64.3k
questions
77.9k
answers
244k
comments
80.0k
users
Recent Blog Comments
category ?
Hi @Arjun sir, I have obtained a score of 591 in ...
download here
Can you please tell about IIT-H mtech CSE self...
Please add your admission queries here:...
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy