![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
jim_cainiaoxiaolang
我热爱大数据开发,希望大家多交流
展开
-
String to Integer (atoi)(java)
mplement atoi to convert a string to an integer.Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input cases原创 2016-07-04 13:12:51 · 415 阅读 · 0 评论 -
Reverse Integer(java)
Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321Have you thought about this?Here are some good questions to ask before coding. Bonus points for you if原创 2016-07-03 15:19:09 · 269 阅读 · 0 评论 -
Two Sum(python)
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.Example:Given nums = [2,原创 2016-07-03 13:49:47 · 363 阅读 · 0 评论 -
Two Sum(java)
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.Example:Given nums = [2,原创 2016-07-03 13:36:04 · 223 阅读 · 0 评论 -
ZigZag Conversion(python)
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 for better legibility)P A H NA P L S I I原创 2016-07-05 14:51:33 · 742 阅读 · 0 评论 -
ZigZag Conversion(java)
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 for better legibility)P A H NA P L S I I原创 2016-07-05 14:37:15 · 304 阅读 · 0 评论 -
Roman to Integer(python)
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.罗马数字转阿拉伯数字规则(仅限于3999以内):从前向后遍历罗马数字,如果某个数比前一个数小,则加上该数。反之,减去前一个数的两倍然后加上该数罗马数字罗马数字是原创 2016-07-05 13:47:05 · 244 阅读 · 0 评论 -
Roman to Integer(java)
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.罗马数字转阿拉伯数字规则(仅限于3999以内):从前向后遍历罗马数字,如果某个数比前一个数小,则加上该数。反之,减去前一个数的两倍然后加上该数罗马数字罗马数原创 2016-07-05 13:18:53 · 204 阅读 · 0 评论 -
Palindrome Number (python)
Determine whether an integer is a palindrome. Do this without extra space.Some hints:Could negative integers be palindromes? (ie, -1)If you are thinking of converting the integer to string, no原创 2016-07-04 15:24:36 · 367 阅读 · 0 评论 -
Palindrome Number(java)
Determine whether an integer is a palindrome. Do this without extra space.Some hints:Could negative integers be palindromes? (ie, -1)If you are thinking of converting the integer to string, no原创 2016-07-04 15:18:38 · 240 阅读 · 0 评论 -
String to Integer (atoi)(python)
Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input case原创 2016-07-04 14:55:47 · 289 阅读 · 0 评论 -
Reverse Integer (python)
Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321click to show spoilers.Have you thought about this?Here are some good questions to ask before coding.原创 2016-07-03 15:41:01 · 1062 阅读 · 0 评论