From b7dca8342f8fdd0d5f7c49b4fd0f21f0f18e8600 Mon Sep 17 00:00:00 2001 From: xqm32 <458173774@qq.com> Date: Wed, 19 Jul 2023 20:23:12 +0800 Subject: [PATCH] leetcode: finished #2716 --- content/leetcode/2023/7.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/content/leetcode/2023/7.md b/content/leetcode/2023/7.md index 426077889..f03f4dca0 100644 --- a/content/leetcode/2023/7.md +++ b/content/leetcode/2023/7.md @@ -3,6 +3,25 @@ title: "2023.7" draft: false --- +# 2023.7.19 + +```python +# +# @lc app=leetcode.cn id=2716 lang=python3 +# +# [2716] 最小化字符串长度 +# + + +# @lc code=start +class Solution: + def minimizedStringLength(self, s: str) -> int: + return len(set(s)) + + +# @lc code=end +``` + # 2023.7.18 ```python