LeetCode Problems' Solutions using python & c languages
| # | 题目 | 答案 | 耗时 |
|---|---|---|---|
| 1 | 两数之和 | Python/C | 40ms/4ms |
| 7 | 整数反转 | Python/C | 52ms/12ms |
| 9 | 回文数 | Python/C | 256ms/116ms |
| 13 | 罗马数字转整数 | Python/C | 128ms/44ms |
| 14 | 最长公共前缀 | Python/C | 36ms/4ms |
| 20 | 有效的括号 | Python/C | 36ms/0ms |
| 22 | 生成括号 | Python/C | ms/ms |
| 26 | 删除排序数组中的重复项 | Python/C | 56ms/8ms |
| 27 | 移除元素 | Python/C | 28ms/4ms |
| 28 | 实现strstr() | Python/C | 32ms/264ms |
| 35 | 搜索插入位置 | Python/C | 36ms/0ms |
| 46 | 全排列 | Python/C | 32ms/ms |
| 112 | 路径总和 | Python/C | 44ms/4ms |
| 121 | 买卖股票的最佳时机 | Python/C | 44ms/0ms |
| 125 | 验证回文串 | Python/C | 36ms/0ms |
| 136 | 只出现一次的数字 | Python/C | 72ms/8ms |
| 155 | 最小栈 | Python/C | 728ms/12ms |
| 190 | 颠倒二进制位 | Python/C | 24ms/4ms |
| 203 | 移除链表元素 | Python/C | 80ms/4ms |
| 206 | 反转链表 | Python/C | 44ms/0ms |
| 209 | 长度最小的子数组 | Python/C | 64ms/4ms |
| 211 | 添加与搜索单词 - 数据结构设计 | Python/C | 260ms/56ms |
| 217 | 存在重复元素 | Python/C | 44ms/8ms |
| 225 | 用队列实现栈 | Python/C | 36ms/0ms |
| 228 | 汇总区间 | Python/C | 36ms/8ms |
| 263 | 丑数 | Python/C | 56ms/4ms |
| 235 | 二叉搜索树的最近公共祖先 | Python/C | 88ms/40ms |
| 292 | Nim 游戏 | Python/C | 32ms/4ms |
| 303 | 区域和检索 - 数组不可变 | Python/C | 1462ms/20ms |
| 367 | 有效的完全平方数 | Python/C | 36ms/0ms |
| 371 | 两整数之和 | Python/C | 32ms/0ms |
| 374 | 猜数字大小 | Python/C | 12ms/--ms |
| 387 | 字符串中的第一个唯一字符 | Python/C | 64ms/4ms |
| 391 | 完美矩形 | Python/C | 408ms/ms |
| 453 | 最小移动次数使数组元素相等 | Python/C | 40ms/32ms |
| 482 | 密钥格式化 | Python/C | 28ms/0ms |
| 507 | 完美数 | Python/C | 40ms/0ms |
| 520 | 检测大写字母 | Python/C | 28ms/0ms |
| 557 | 反转字符串中的单词 III | Python/C | 40ms/4ms |
| 564 | 寻找最近的回文数 | Python/C | 36ms/ms |
| 566 | 重塑矩阵 | Python/C | 80ms/12ms |
| 605 | 种花问题 | Python/C | 48ms/8ms |
| 611 | 有效三角形的个数 | Python/C | 248ms/12ms |
| 628 | 三个数的最大乘积 | Python/C | 292ms/42ms |
| 643 | 子数组最大平均数 I | Python/C | 148ms/120ms |
| 659 | 分割数组为连续子序列 | Python/C | ms/ms |
| 674 | 最长连续递增序列 | Python/C | 40ms/4ms |
| 680 | 验证回文字符串 Ⅱ | Python/C | 256ms/24ms |
| 704 | 二分查找 | Python/C | 48ms/12ms |
| 720 | 词典中最长的单词 | Python/C | 80ms/28ms |
| 784 | 字母大小写全排列 | Python/C | 68ms/32ms |
| 811 | 子域名访问计数 | Python/C | 60ms/16ms |
| 821 | 字符的最短距离 | Python/C | 48ms/8ms |
| 855 | 考场就座 | Python/C | 364ms/20ms |
| 872 | 叶子相似的树 | Python/C | 32ms/0ms |
| 893 | 特殊等价字符串组 | Python/C | 36ms/0ms |
| 896 | 单调数列 | Python/C | 532ms/60ms |
| 917 | 仅仅反转字母 | Python/C | 24ms/0ms |
| 922 | 按奇偶排序数组 II | Python/C | 124ms/20ms |
| 949 | 给定数字能组成的最大时间 | Python/C | 40ms/4ms |
| 970 | 强整数 | Python/C | 24ms/0ms |
| 976 | 三角形的最大周长 | Python/C | 72ms/24ms |
| 989 | 数组形式的整数加法 | Python/C | 224ms/80ms |
| 1002 | 查找常用字符 | Python/C | 48ms/8ms |
| 1033 | 移动石子直到连续 | Python/C | 28ms/0ms |