摘要:
Plus OneGiven a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant dig... 阅读全文
摘要:
Climbing StairsYou are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct way... 阅读全文
摘要:
Single Number IIGiven an array of integers, every element appearsthreetimes except for one. Find that single one.python code:class Solution: # @par... 阅读全文
摘要:
Single NumberGiven an array of integers, every element appearstwiceexcept for one. Find that single one.python code:class Solution: # @param {integ... 阅读全文
摘要:
Intersection of Two Linked ListsWrite a program to find the node at which the intersection of two singly linked lists begins.For example, the followin... 阅读全文
摘要:
Find Peak ElementA peak element is an element that is greater than its neighbors.Given an input array wherenum[i] ≠ num[i+1], find a peak element and ... 阅读全文