没有合适的资源?快使用搜索试试~ 我知道了~
leetcode答案-python_learn:编程Python
共37个文件
py:35个
md:1个
gitignore:1个
需积分: 9 0 下载量 43 浏览量
2021-06-30
01:21:21
上传
评论
收藏 27KB ZIP 举报
温馨提示
leetcode 答案 leetcode python solution Algorithms (:hundred_points: 代表答主提交答案时在前 100 %) 1. : 2. : :hundred_points: 3. : 4. : :hundred_points: 5. : (这道题对 Python 有毒, 只要时间复杂度大于等于 O(n2) 绝对 TLE, 其它语言 O(n3) 也能过...) tips: Python 用 Manacher’s Algorithm 比较稳, 其它算法基本 TLE. 本例里用将每个字符当作回文串中心对匹配方式,还是可能 TLE. 6. : tips: 以每 (2 * numRows - 2) 个字符串为一组进行操作,最后一组不足 (2 * numRows - 2) 个字符用特殊字符补齐,最后返回前再将特殊字符去掉 7. : 8. : 9. : 10. : tips: 用的思路可以解, 递归 Python 会 TLE. 用 re 库可以一句话解决: (return re.match(r'^{0}$'.format(p), s)) 不过不推荐. 11. : :hundred_points: tips: bf 做复杂度 O(n2) Python 会 TLE. 用两
资源推荐
资源详情
资源评论
收起资源包目录
python_learn-master.zip (37个子文件)
python_learn-master
integer_to_roman.py 3KB
sunday.py 751B
1.py 71B
add_two_numbers.py 1KB
regular_expression_matching.py 889B
longest_common_prefix.py 3KB
generate_parentheses.py 2KB
implement_strStr.py 3KB
2.py 18B
roman_to_integer.py 2KB
divide_two_integers.py 3KB
readme.md 8KB
remove_nth_node_from_end_of_list.py 3KB
zigzag_conversion.py 3KB
sort_algorithm_practice.py 5KB
container_with_most_water.py 2KB
reverse_link_list.py 2KB
valid_parentheses.py 3KB
palindrome_number.py 2KB
3sum.py 811B
merge_k_sorted_lists.py 4KB
lswrc.py 603B
swap_nodes_in_pairs.py 3KB
reverse_nodes_in_k-group.py 1KB
4sum.py 3KB
binary.py 625B
3sum_closest.py 3KB
longest_palindromic_substring.py 1KB
.gitignore 45B
motsa.py 548B
remove_duplicates_from_sorted_array.py 2KB
string_to_integer.py 3KB
remove_element.py 2KB
two_sum.py 482B
reverse_integer.py 2KB
merge_two_sorted_lists.py 3KB
letter_combinations_of_a_phone_number.py 3KB
共 37 条
- 1
资源评论
weixin_38735570
- 粉丝: 5
- 资源: 935
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功