摘要:
Question:A Slice of an array said to be a Bounded slice if Max(SliceArray)-Min(SliceArray) stack = new LinkedList(); private Deque minStack = new L... 阅读全文
摘要:
Question:Given a n,m which means the row and column of the 2D matrix and an array of pair A( size k). Originally, the 2D matrix is all 0 which means t... 阅读全文
摘要:
Question:You are given information about hotels in a country/city. X and Y coordinates of each hotel are known. You need to suggest the list of neares... 阅读全文
摘要:
上一篇总结了mergeSort-like questions,这篇总结一下有关quickSort的问题。Question:Given an array of object A, and an array of object B. All A's havedifferent sizes, and al... 阅读全文
摘要:
排序有关的问题在面试题中相当多。对于参加面试的人来说,最基本的merge sort和quick sort肯定是必须掌握的,而且要能快速地写出bug free的代码。这次总结的是两道mergeSort-like问题。Question 1:qaz is a value for a number wher... 阅读全文