Tip 1 : Practise as many questions as you can
Tip 2 : Try solving the question on your own.
Tip 3 : To learn the concepts of OOM its best to go through a project.
Tip 1 : Mention your coding achievements
Tip 2 : Do not make a big resume.
The interview was held at about 9 in the morning and interviews conducted on cisco webx platform. First of all interviewer introduced himself and then asked me about my hobbies etc. .Then there was a brief discussion about my projects and what all challenges I faced while doing the projects. Then he jumped to a coding question. Question was pretty easy and I told him about my approach and then coded it down. After this he gave another coding question. This on was a little confusing, I asked him a lot of queries to understand the problem statement. I kept on telling him about my approach towards the problem. Towards the end I got to the correct approach and he seemed to be satisfied with that. He did not ask to code it down. After this he asked me if I had any doubts and this concluded the first round.
Interviewer was very nice and made me feel pretty comfortable. We talked about our hobbies for about 10mins and then he asked about my projects and which was my favourite of all. He then asked me a coding question. Which was like pretty easy and I gave him the optimized approach right away. He was satisfied with my approach and just moved on to the next part. He asked me some basic questions related to Operating Systems(related to deadlocks and semaphores). He even asked some basic questions related to OOPS. Then he gave me the next question. This was like a pretty new question for me and I took some time to understand the problem statement and then took some time to think about the logic. I was also sharing my approach with interviewer as well.I finally told him about my approach. He told me that my approach was fine but there also was some other approach but normally no-one would come up with that approach until they have previously solved the question.



A subtree of a tree T is a tree S consisting of a node in T and all of its descendants in T. The subtree corresponding to the root node is the entire tree. For better understanding, refer to the image below:-

1. The tree will always be rooted at 0.
2. You can return the count of nodes in any order.
3. The root of any subtree is also counted in the subtree thus the count of nodes in a subtree rooted at a leaf node is
4. You can return the numbers in any order.
We need to find the number of nodes in subtree for each and every node in the tree.
Interviewer seemed to be a senior manager.He just asked about me and started with the interview.Interviewer asked me to design a standard map(hash-map). I gave him my approach and he also asked me to devise a hash function for it. I also gave him a hash function and he seemed to be pretty satisfied.
Design a basic hash map.
Tip 1 : Get the requirements clear by asking questions
Tip 2 : Try sharing your approach with interviewer
Tip 3 : Share your approach with the interviewer at each and every step.
HR just asked me about my hobbies and stuff. He told me I might have to relocate to banglore and if I was comfortable with it. I then asked him about his views on working in cisco.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
To make an AI less repetitive in a long paragraph, you should increase: