摘要:
QuestionGivennnon-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in th... 阅读全文
摘要:
Linear data structure.First In Last Out.push: O(1) pop: O(1) peek: O(1)In Java, there is aStackclass.A more complete and consistent set of LIFO stac... 阅读全文
摘要:
OutlineLinear Data StructureQueueStackHashTree Data StructureHeapDefinitionData Structure is a way to organize data. It provides some methods to handl... 阅读全文
摘要:
QuestionGiven an array of non-negative integers. Find the largest multiple of 3 that can be formed from array elements.For example, if the input array... 阅读全文
摘要:
QuestionAcomplete binary treeis a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as p... 阅读全文
摘要:
QuestionGiven an array of n integer with duplicate number, and a moving window(size k), move the window at each iteration from the start of the array,... 阅读全文
摘要:
QuestionGiven two 1d vectors, implement an iterator to return their elements alternately.For example, given two 1d vectors:v1 = [1, 2]v2 = [3, 4, 5, 6... 阅读全文