摘要:
3SumJan 18 '12 6170 / 23359Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? 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-descending order. (ie, a ? b ? c)The solution set must not conta 阅读全文
摘要:
Add BinaryApr 2 '12 3558 / 10570Given two binary strings, return their sum (also a binary string).For example, a = "11" b = "1" Return "100".class Solution {public: string addBinary(string a, string b) { // Start typing your C/C++ solution below // DO NOT write int 阅读全文
摘要:
Add Two Numbers Nov 1 '11 5998 / 20033You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list.Input: (2 -> 4 -> 3) + (5 -> 6 -> 4) O 阅读全文
摘要:
LeetCode-Two SumLeetCode-Median of Two Sorted ArraysLeetCode-Longest Substring Without Repeating CharactersLeetCode-Add Two NumbersLeetCode-Longest Palindromic SubstringLeetCode-ZigZag ConversionLeetCode-Reverse IntegerLeetCode-String to Integer (atoi)LeetCode-Palindrome NumberLeetCode-Container Wit 阅读全文