Why do you need gets and sets ? Why don't just expose members?
First of all, by the definition, the accessor of a property contains the executable st ...
Search results for bst
Filling Matrix Interview Puzzle
Posted by Job-Interview
Puzzle:
You are given a matrix N x M size. Each cell of the matrix contains a random capital letter of English alphabet [“A”..”Z”]. If matri ...
Civil engineering degree guides and resources for potential students. Compare, research the best school, and apply today. Before even looking at a civ ...
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
What Are the Federal Laws Prohibiting Job Discrimination?
Posted by Job-Interview (http://www.eeoc.gov)
List of Federal Laws Prohibiting Job Discrimination
Title VII of the Civil Rights Act of 1964 (Title VII), which prohibits employment discrimination ...
Object Oriented Programming: A computer programming methodology that focuses on data rather than processes
Object: Any entity that can be manipulated ...
Design an alogrithms and data structure to retrieve median of vector (array) in constant time.
Posted by Microsoft-Interview
Full question:
You have a vector of signed integers and you need to support an API with two exposed methods, insert(int) and getmedian().
Describe a ...
Interviewed for position: SDE
Interviewed for position: SDE
Find substring in a string
Posted by CodeGuru
Task was to write a function to find substring in a given string.
Answer:
One possible O(n2) solution from Wikipedia:
int NaiveSearch(string s[1. ...