Question
Design a deck of cards class for poker game, then generalize it to be used in any card game. What properties, fields and methods would this ...
Published Questions » Technical Questions
Answer:
Hash tables (hash maps) - is amortized constant-time access data structures that map keys to values.
Binary Trees - is a tree data structur ...
Write function to implement the Binary Search algorithm on the array of integeres
Posted by CMaster (http://vijayinterviewquestions.blogspot.com)
Answer
Note: array should be sorted or Binary search won't work !
int binarySearch(int arr[],int size, int item)
{
int left, right, middle;
left = 0 ...
Apples delivery math interview puzzle
Posted by CMaster
The distance between the towns A and B is 1000 miles. There is 3000 apples in A, and the apples have to be delivered to B.
The available car can tak ...
Find largest subset of increasing pair in an array of integers
Posted by CMaster (http://codingplayground.blogspot.com)
Question:
Given an array of integers A[N], find the maximum value of (j-k) such that A[k] <= A[j] & j>k
Given an array of integers A[N], find the maximum value of (j-k) such that A[k] <= A[j] & j>k
How would you implement Iterator Pattern for traversing Binary Tree (in any order of your choice)?
So, the following would give an example of using s ...
Company where asked this question: Amazon (Seattle)
Company where asked this question: Amazon (Seattle)
My answer was:
Bubble Sort
Heap Sort
Insertion Sort
Merge Sort
Quick Sort
Selection Sort
Bucket Sort
Follow up question was to ...
Interviewed for position: SDET (Contractor)
Interviewed for position: SDET (Contractor)
There are couple options and interviewer looking on multiple things in your answer.
Sample Answer:
JQuery provides string trimming function and if ...
