![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode代码实现
文章平均质量分 80
咕嘟咕嘟咕嘟
这个作者很懒,什么都没留下…
展开
-
【LeetCode】【Python】8. String to Integer (atoi)
题目 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 possi原创 2017-04-25 16:30:53 · 231 阅读 · 0 评论 -
【Leetcode】【Python】9. Palindrome Number实现
题目: Determine whether an integer is a palindrome. Do this without extra space. click to show spoilers. Subscribe to see which companies asked this question. 思路: 将数字转化为字符串,头尾相互开始比较,直原创 2017-04-25 16:37:36 · 356 阅读 · 0 评论 -
【LeetCode】【Python】【C++】2. Add Two Numbers代码实现
题目: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it原创 2017-04-24 21:11:01 · 251 阅读 · 0 评论 -
【Leetcode】【Python】【C++】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 would have exactly one solution, and you may原创 2017-05-18 11:21:22 · 191 阅读 · 0 评论 -
【LeetCode】【Python】【C++】7. Reverse Integer代码实现
题目 Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 click to show spoilers. Have you thought about this? Here are some good questions to ask原创 2017-04-24 21:44:12 · 215 阅读 · 0 评论