题目: Given an array of integers, find two numbers such that they add up to a specific target number ...
题目: Given an array S of n integers, are there elements a, b, c in S such that a b c Find all unique triplets in the array which gives the sum of zero. Note: Elements in a triplet a,b,c must be in non ...
2014-07-22 05:13 3 6276 推荐指数:
题目: Given an array of integers, find two numbers such that they add up to a specific target number ...
which gives the sum of target. Note: Elements ...
题目: Given a set of candidate numbers (C) and a target number (T), find all unique combinations in ...
题目: 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 ...
题目: Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum. For example: Given the below binary ...
题目: Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three ...
题目: Given a collection of candidate numbers (C) and a target number (T), find all unique combinati ...
题目: Given a binary tree, find the maximum path sum. The path may start and end at any node in the tree. For example: Given the below binary ...