摘要:
Fraction to Recurring Decimal2015.1.23 15:59Given two integers representing the numerator and denominator of a fraction, return the fraction in string... 阅读全文
摘要:
Compare Version Numbers2015.1.23 15:27Compare two version numbersversion1andversion1.Ifversion1>version2return 1, ifversion1 n2) { 25 retu... 阅读全文
摘要:
Maximum Gap2015.1.23 15:00Given an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in l... 阅读全文
摘要:
Find Peak Element2015.1.23 14:28A peak element is an element that is greater than its neighbors.Given an input array wherenum[i] ≠ num[i+1], find a pe... 阅读全文
摘要:
Intersection of Two Linked Lists2015.1.23 12:53Write a program to find the node at which the intersection of two singly linked lists begins.For exampl... 阅读全文
摘要:
Min Stack2015.1.23 12:13Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) -- Push element x o... 阅读全文
摘要:
Find Minimum in Rotated Sorted Array II2015.1.23 11:41Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7mig... 阅读全文