diff --git a/problems/0001.两数之和.md b/problems/0001.两数之和.md index 02e9996f..31a808b0 100644 --- a/problems/0001.两数之和.md +++ b/problems/0001.两数之和.md @@ -107,7 +107,7 @@ public int[] twoSum(int[] nums, int target) { Python: -```python3 +```python class Solution: def twoSum(self, nums: List[int], target: int) -> List[int]: hashmap={} diff --git a/problems/0349.两个数组的交集.md b/problems/0349.两个数组的交集.md index 090480a4..5c635d39 100644 --- a/problems/0349.两个数组的交集.md +++ b/problems/0349.两个数组的交集.md @@ -118,7 +118,7 @@ class Solution { ``` Python: -```python3 +```python class Solution: def intersection(self, nums1: List[int], nums2: List[int]) -> List[int]: result_set = set() diff --git a/problems/0707.设计链表.md b/problems/0707.设计链表.md index 2fa1af29..2d096063 100644 --- a/problems/0707.设计链表.md +++ b/problems/0707.设计链表.md @@ -239,7 +239,7 @@ class MyLinkedList { ``` Python: -```python3 +```python # 单链表 class Node: