摘要:
1. 无重复字符的最长子串 给定一个字符串 s ,请找出其中不含有重复字符的 最长 子串 的长度。 class Solution: def lengthOfLongestSubstring(self, s: str) -> int: char_dict = {} max_length = 0 sta 阅读全文
posted @ 2024-08-15 22:36
WindMay
阅读(16)
评论(0)
推荐(0)
摘要:
1. 两数之和 给定一个整数数组 nums 和一个整数目标值 target,请在该数组中找出 和为目标值 target 的那 两个 整数,并返回它们的数组下标。 class Solution: def twoSum(self, nums: List[int], target: int) -> Lis 阅读全文
posted @ 2024-08-15 00:26
WindMay
阅读(19)
评论(1)
推荐(0)

浙公网安备 33010602011771号