How to read file asynchronous with C#?
.NET provides Stream.BeginRead Method with following parameters:
buffer
The buffer to read the data into.
...
Search results for null
How to read file asynchronous with C#
Posted by CMaster
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
Company where asked this question: Amazon
Interviewed for position: SDE, SDET
Belove is list of Silverlight Error Codes which can be used for user friendly messaging:
Error Code
Error Message
1001
AG_E_UNKNOWN_ERROR
2000
...
Write a function that sums up integers from a text file, one int per line.
Posted by CMaster (http://sites.google.com)
Answer in Java
public static void sumFile ( String name ) { try { int total = 0; BufferedReader in = new BufferedRead ...
How to generate random linked list?
Posted by CMaster
Considering following definition of linked list data structure
class Node
{
public string Data = string.Empty;
...
Write a function which will insert a number into the correct location of the Binary Search Tree
Posted by CMaster
The question is tricky as you need to veify if interviewer is talking about balanced or unbalanced search tree.
The best case performance for a bala ...
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 ...
