- 博客(5)
- 收藏
- 关注
原创 LeetCode刷题(python版)-013
LeetCode #13题目(英)题目(中)solution 1: 每次比两位,然后判断下次跳几位solution 2:总结题目(英)Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.SymbolValueI1V5X10L50C100D500M1000For example, two is written as I
2020-06-30 16:37:21 146
原创 LeetCode刷题(python版)-009
LeetCode #9题目(英)题目(中)Solution 1:直接当成数字按位处理Solution 2:将数字当成字符串处理总结题目(英)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: trueExample 2: Input: -121 Output: f
2020-06-28 17:01:38 168
原创 LeetCode刷题(python版)-007
LeetCode #7 整数反转题目(英)题目(中)Solution 1:直接当成数字按位处理Solution 2:将数字当成字符串处理总结题目(英)Given a 32-bit signed integer, reverse digits of an integer.Example 1: Input: 123 Output: 321Example 2: Input: -123 Output: -321Example 3: Input: 120 Output: 21Note:As
2020-06-27 22:12:14 137
原创 LeetCode刷题(python版)-001
Leetcode #1题目(英)题目(中)欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导出导入题目(英)Given an array of integers, return indices of
2020-06-26 23:00:58 187
原创 Python 基础(1/8)
Python 基础(1/8)python命令行的补充python中对象的定义我们在这里 a 和 b是变量,3 和 “我爱你” 是对象像上面说的变量 a 和 b 是在栈里,3 和 “我爱你” 是对象在堆里...
2020-04-08 13:34:01 173
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人