259 views
0 votes
0 votes
I am having problem in Tree Data structure ,to be precise i am getting all the concepts but when it come to solving question where time complexity would be the ans i am facing trouble.
I am getting confused in the time complexity of different Tree operations  and How to master them?
Please suggest some tree that i master the Tree chapter

1 Answer

2 votes
2 votes

Well, solving Tree Questions is not very difficult at all. As you are facing in difficulty in Time complexity

of different tree operations, then i will suggest these 3 points that i always follow :

 

  1. Just read the question carefully & try to absorb the question as much as you can. Try to gather

    all the information, instead of assuming anything from your side.

     
  2. Always try to analyze the extreme points. Extreme point means, think about the best case &

    the worst case that can be possible, according to the given information in the question.

    Why i am saying for analysis of extreme points? Because, in these type of questions, they

    generally ask about either best or worst case.

     
  3. Once you have analyzed the extreme points & came to conclusion, wait for 30 seconds

    before marking that option as correct answer. In these 30 seconds just take a quick recap,

    why you have concluded this option as correct answer.

 

Hope this will help!!

edited by

Related questions

3.8k
views
1 answers
6 votes
varunraj asked Apr 12, 2019
3,837 views
Why hasn't anyone got 90+ marks in the GATE-CS till now ?Is there any possibility to score more than 90+ marks in CS ?what are the ways to achieve it ,while other branch people are achieving?
934
views
0 answers
0 votes
begonethots asked Apr 12, 2022
934 views
Hello everyone!I am looking for resources to study the gate subjects in some depth such that it helps in gate as well as psu/mtech interview preparation. Well ... links to share kindly share it. Thanks and all the best for your preparation!
851
views
0 answers
3 votes
mayank5795 asked Aug 10, 2017
851 views
I am preparing for GATE CSE 2018 and using only recommended books to study. I am actually not confident about my approach.When i complete a book with ... better approach/advice and full detailed syllabus for GATE CSE?Please help me out.
1.7k
views
0 answers
2 votes
Akash Mishra asked Nov 29, 2017
1,676 views
Hi, I'm self-preparing for GATE 2018. There are only 2 months left and I've still got 3 subjects remaining (Digital + CSO + Networks).Currently, I'm brushing up ... .I don't want to leave any subjects for GATE. I want to be fully prepared.