
o j算法
文章平均质量分 52
aizaiee
呵呵呵呵呵呵呵
展开
-
算法习题篇之ReverseInteger
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: Input: 120 Output: 21 Note: Assume we are dealing wit...原创 2018-10-11 09:23:43 · 210 阅读 · 0 评论 -
算法习题篇之 Roman to Integer
Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X 10 L 50 C 100 D ...原创 2018-10-12 09:03:34 · 211 阅读 · 0 评论 -
算法习题篇之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 an empty string "". Example 1: Input: ["flower","flow","flight"] Output:...原创 2018-10-14 00:31:57 · 291 阅读 · 0 评论 -
算法习题篇之Twosum
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 have exactly one solution, and you may not use the same ...原创 2018-10-10 09:05:52 · 296 阅读 · 0 评论 -
算法习题篇之Palindrome
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: true Example 2: Input: -121 Output: false Explana...原创 2018-10-10 10:45:05 · 471 阅读 · 0 评论