摘要:
15. 3Sum Given an array nums of n integers, are there elements a, b, c in nums such that a + b+ c = 0? Find all unique triplets in the array which giv 阅读全文
摘要:
14. Longest Common Prefix Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return 阅读全文
摘要:
13. Roman to Integer Roman numerals are represented by seven different symbols: I, V, X, L, C, Dand M. For example, two is written as II in Roman nume 阅读全文
摘要:
12. Integer to Roman Roman numerals are represented by seven different symbols: I, V, X, L, C, Dand M. For example, two is written as II in Roman nume 阅读全文
摘要:
11. Container With Most Water Given n non-negative integers a1, a2, ..., an , where each represents a point at coordinate (i, ai). n vertical lines ar 阅读全文
摘要:
10. Regular Expression Matching Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'. The m 阅读全文
摘要:
9. Palindrome Number Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Example 1: E 阅读全文
摘要:
8. String to Integer (atoi) Implement atoi which converts a string to an integer. The function first discards as many whitespace characters as necessa 阅读全文
摘要:
7. Reverse Integer Given a 32-bit signed integer, reverse digits of an integer. Example 1: Example 2: Example 3: 阅读全文
摘要:
6. ZigZag Conversion The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pat 阅读全文