balani.kunal
BAN USER
Comments (4)
Reputation 10
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
1
of 1 vote
Maintain a Doubly liked list along with the HashMap. See java docs for How LinkedHashMap is used implementing the LRU.
- balani.kunal June 10, 2013Comment hidden because of low score. Click to expand.
0
of 0 vote
A sequel to this question is what if two numbers are missing ???
- balani.kunal June 09, 2013Comment hidden because of low score. Click to expand.
0
of 0 vote
public int MaxDepth(Node root){
if(root == null){
return 0;
}
return (Math.max(MaxDepth(root.left), MaxDepth(root.right)) + 1);
}
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
Read cracking the coding interview (smart pointers)
- balani.kunal June 10, 2013