lrucacheleetcode-leetcode:我用Python编写的Leetcode解决方案

时间:2021-06-29 22:26:08
【文件属性】:
文件名称:lrucacheleetcode-leetcode:我用Python编写的Leetcode解决方案
文件大小:22KB
文件格式:ZIP
更新时间:2021-06-29 22:26:08
系统开源 lru缓存leetcode 力码解决方案 这些是我用 Python 编写的 Leetcode 解决方案。 根据问题编号进行结构化。 用法 安装poetry通过pip install poetry 。 接下来运行poetry install 。 要运行测试运行poetry run pytest src/ 。 格式与poetry run black src/ 。 问题 代码 标题 秩 解决方案 关联 001 二和 简单的 003 无重复字符的最长子串 中等的 028 实现 strStr() 简单的 042 收集雨水 难的 056 合并间隔 中等的 146 LRU缓存 中等的 200 岛屿数量 中等的
【文件预览】:
leetcode-master
----.github()
--------workflows()
----poetry.lock(15KB)
----src()
--------lru_cache()
--------number_of_islands()
--------__init__.py(0B)
--------two_sum()
--------longest_substring_without_repeating_characters()
--------merging_intervals()
--------implement_strstr()
--------trapping_rainwater()
----pytest.ini(0B)
----README.md(2KB)
----template()
--------solution.py(53B)
--------__init__.py(0B)
--------test_solution.py(175B)
--------notes.md(8B)
----.gitignore(2KB)
----pyproject.toml(412B)

网友评论