摘要: 题目: 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 "". Ex 阅读全文
posted @ 2020-03-19 16:52 好麻烦快点 阅读(93) 评论(0) 推荐(0)
摘要: 题目: Roman numerals are represented by seven different symbols: I, V, X, L, C, Dand M. Symbol Value I 1 V 5 X 10 L 50 C 100 D 500 M 1000 For example, t 阅读全文
posted @ 2020-03-19 15:31 好麻烦快点 阅读(81) 评论(0) 推荐(0)
摘要: 题目: Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Example 1: Input: 121 Output: 阅读全文
posted @ 2020-03-19 00:12 好麻烦快点 阅读(90) 评论(0) 推荐(0)
摘要: 题目: Given a 32-bit signed integer, reverse digits of an integer. Example 1: Input: 123 Output: 321 Example 2: Input: -123 Output: -321 Example 3: Inpu 阅读全文
posted @ 2020-03-18 23:11 好麻烦快点 阅读(83) 评论(0) 推荐(0)
摘要: 题目: 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 would hav 阅读全文
posted @ 2020-03-18 22:32 好麻烦快点 阅读(88) 评论(0) 推荐(0)