LeetCode刷题(python版)
kingmengdi
这个作者很懒,什么都没留下…
展开
-
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 阅读 · 0 评论 -
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 阅读 · 0 评论 -
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 阅读 · 0 评论 -
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 阅读 · 0 评论