摘要:
Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string "". Exampl 阅读全文
摘要:
Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Example 1: Example 2: Example 3: 阅读全文
摘要:
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font 阅读全文
摘要:
集体右移:选中代码,按tab键 集体左移:选中代码,按shift+tab键 阅读全文
摘要:
Given a 32-bit signed integer, reverse digits of an integer. Example 1: Example 2: Example 3: 题意: 给定一个10进制整数,翻转它。 Solution1: directly do the simulatio 阅读全文