摘要:
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 a 阅读全文
摘要:
13、Roman to Integer Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. For example, two is written as II in Roman nume 阅读全文
摘要:
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: Ex 阅读全文
摘要:
7、Reverse Integer Given a 32-bit signed integer, reverse digits of an integer. Example 1: Example 2: Example 3: 解析: 输入:整数 输出:整数 代码思想: 首先,对非0整数从个位数开始向左 阅读全文
摘要:
1、Two Sum Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input wou 阅读全文