Unify the comment style of python codes

This commit is contained in:
krahets
2023-04-09 05:30:02 +08:00
parent 5ddcb60825
commit 10e2180013
53 changed files with 109 additions and 106 deletions

View File

@ -27,7 +27,7 @@ def two_sum_hash_table(nums: list[int], target: int) -> list[int]:
return []
""" Driver Code """
"""Driver Code"""
if __name__ == "__main__":
# ======= Test Case =======
nums = [2, 7, 11, 15]

View File

@ -73,7 +73,7 @@ def build_tree(n: int) -> TreeNode | None:
return root
""" Driver Code """
"""Driver Code"""
if __name__ == "__main__":
n = 5
# 常数阶

View File

@ -114,7 +114,7 @@ def factorial_recur(n: int) -> int:
return count
""" Driver Code """
"""Driver Code"""
if __name__ == "__main__":
# 可以修改 n 运行,体会一下各种复杂度的操作数量变化趋势
n = 8

View File

@ -26,7 +26,7 @@ def find_one(nums: list[int]) -> int:
return -1
""" Driver Code """
"""Driver Code"""
if __name__ == "__main__":
for i in range(10):
n: int = 100