Answer
Binary search tree (BST) is a binary tree which has the following properties:
1. Tree is a binary tree
2. The left subtree of a node conta ...
Company where asked this question: Amazon
Interviewed for position: SDE, SDET
Search results for tree structure, tree, db, database
Another very common variation is how to store a tree data structure in a database.
Be prepared to answer this question even if you are applying for U ...
Answer
The solution, while being extremely simple, sometimes confuses many people because of the necessity of maintaining an array index for the nex ...
Write a function which will search a given BST for a specific key and return a Value for the found node
Posted by CMaster
class Node
{
public Node Right;
public Node Left;
public int Key;
public String Value;
}
Write a function which will search a given BST for ...
Write the method void Clean(Node root) which would clean Nodes but don’t use the recursion
Posted by aleksin
The solution is to use an additional data structure such as Stack to maintain a list of unprocessed nodes, keep adding children to the stack, and then ...
Is it possible for ASP.NET 1.0 and ASP.NET 4.0 applications to share session database?
Posted by AmCook
Answer:
Yes it is possible as the session SQL backend didn't change between those versions. However it is always good practice to have separate sessi ...
A primary key is the field(s) in a table that uniquely defines the row in the table; the values in the primary key are always unique. A foreign key is ...
What are the constraints ?
Posted by Devin
Table Constraints define rules regarding the values allowed in columns and are the standard mechanism for enforcing integrity. SQL Server 2000 support ...
