leetcode
主要用于记录leetcode刷题、总结、复习的所有心路历程。
小智Robo
懂点数据,懂点人工智能,关注前沿科技,科技改变未来!
展开
-
入坑Leetcode - 两整数之和(TwoSum)- No.371
题目:(1)TwoSum问题描述:Given an array of integers, returnindicesof the two numbers such that they add up to a specific target. You may assume that each input would haveexactlyone solution, and you may n...原创 2018-03-11 11:28:18 · 241 阅读 · 0 评论 -
入坑Leetcode - 整数反转(ReverseInteger)- No.3
题目:(2)ReverseInteger问题描述:Given a 32-bit signed integer, reverse digits of an integer.给定一个32位有符号整数,输出整数的反转数字。Example:Example 1:Input: 123Output: 321Example 2:Input: -123Output: -321Example 3:Input...原创 2018-03-12 17:58:22 · 189 阅读 · 0 评论 -
入坑Leetcode - 回文数(Palindrome)- No.9
题目:(3) Palindrome问题描述:Determine whether an integer is a palindrome. Do this without extra space.判断一个整数是否是回文数,没有额外的空间供你使用。什么是回文数?1.负数一定不是回文数2.0是回文数3.正反一样的数是回文数,例:123321是回文数,1231不是回文数方法一:class Solution:...原创 2018-03-13 18:31:45 · 303 阅读 · 0 评论 -
入坑Leetcode - 刷题笔记模板 2020-04-11
系列博客实现地址:https://leetcode-cn.com/problemset/all/原题目介绍题目:描述:输入:输出:题目理解 & 解题思路题目理解:解题思路:自己的解法实现无论如何自己先实现一下…PythonJavaScalaC++网上比较优秀的解法解法一解法二解法三…对自己解法的改进…相关知识总结和思考相关知识:深...原创 2020-04-11 22:19:11 · 405 阅读 · 0 评论