|

Published Questions » Technical Questions

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 ...
Answer: Hash tables (hash maps) - is amortized constant-time access data structures that map keys to values. Binary Trees - is a tree data structur ...
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 ...
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 ...
Question:

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)
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)
There are couple options and interviewer looking on multiple things in your answer. Sample Answer: JQuery provides string trimming function and if ...
Saved Stories

Sponsored Categories