leetcode 167: Two Sum II,leetcodesumTwo Sum II - Input array is sortedTotal Accepted: 441 Total Submissions: 1017Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number.
poj 1840 簡單hash,poj1840hashhttp://poj.org/problem?id=1840DescriptionConsider equations having the following form: a1x13+ a2x23+ a3x33+ a4x43+ a5x53=0 The coefficients are given integers from the interval [-50,50]. It
[LeetCode] Binary Search Tree Iterator,leetcodeiteratorImplement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.Calling next() will return the next smallest number in the BST.Note:
LeetCode Longest Palindromic Substring,palindromicLongest Palindromic Substring Question Solution Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000,
[LeetCode]112.Path Sum,leetcode112.path【題目】Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.For example:Given the below binary tree and sum = 22,