Skip to content

Commit 3002efd

Browse files
committed
由于版权原因,删除 828 题解
1 parent d527876 commit 3002efd

File tree

4 files changed

+4
-23
lines changed

4 files changed

+4
-23
lines changed

Algorithms/0828. Unique Letter String/README.md renamed to Algorithms/0828. COPYRIGHT PROBLEM XXX/README.md

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,14 @@
22

33
## 题目
44

5-
A character is unique in string `S` if it occurs exactly once in it.
6-
7-
For example, in string `S = "LETTER"`, the only unique characters are `"L"` and `"R"`.
8-
9-
Let's define `UNIQ(S)` as the number of unique characters in string `S`.
10-
11-
For example, `UNIQ("LETTER") = 2`.
12-
13-
Given a string `S` with only uppercases, calculate the sum of `UNIQ(substring)` over all non-empty substrings of `S`.
14-
15-
If there are two or more equal substrings at different positions in `S`, we consider them different.
16-
17-
Since the answer can be very large, return the answer modulo `10 ^ 9 + 7`.
5+
THIS PROBLEM COPYRIGHT BELONGS TO CODILITY.COM
186

197
**Example 1:**
208

21-
Input: "ABC"
22-
Output: 10
23-
Explanation: All possible substrings are: "A","B","C","AB","BC" and "ABC".
24-
Evey substring is composed with only unique letters.
25-
Sum of lengths of all substring is 1 + 1 + 1 + 2 + 2 + 3 = 10
9+
2610

2711
**Example 2:**
2812

29-
Input: "ABA"
30-
Output: 8
31-
Explanation: The same as example 1, except uni("ABA") = 1.
3213

3314

3415
## 题目大意

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@
895895
| 0825 | Friends Of Appropriate Ages | | 36.50% | Medium | |
896896
| 0826 | Most Profit Assigning Work | [Go](https://github.com/halfrost/LeetCode-Go/tree/master/Algorithms/0826.%20Most%20Profit%20Assigning%20Work) | 35.90% | Medium | |
897897
| 0827 | Making A Large Island | | 43.40% | Hard | |
898-
| 0828 | Unique Letter String |[Go](https://github.com/halfrost/LeetCode-Go/tree/master/Algorithms/0828.%20Unique%20Letter%20String) | 39.80% | Hard | |
898+
| 0828 | Unique Letter String |[Go]() | 39.80% | Hard | |
899899
| 0829 | Consecutive Numbers Sum | | 33.50% | Hard | |
900900
| 0830 | Positions of Large Groups | | 47.90% | Easy | |
901901
| 0831 | Masking Personal Information | | 42.20% | Medium | |
@@ -1454,7 +1454,7 @@
14541454
|[713. Subarray Product Less Than K](https://leetcode.com/problems/subarray-product-less-than-k)| [Go](https://github.com/halfrost/LeetCode-Go/tree/master/Algorithms/0713.%20Subarray%20Product%20Less%20Than%20K)| Medium | O(n)| O(1)||
14551455
|[763. Partition Labels](https://leetcode.com/problems/partition-labels)| [Go](https://github.com/halfrost/LeetCode-Go/tree/master/Algorithms/0763.%20Partition%20Labels)| Medium | O(n)| O(1)|❤️|
14561456
|[826. Most Profit Assigning Work](https://leetcode.com/problems/most-profit-assigning-work)| [Go](https://github.com/halfrost/LeetCode-Go/tree/master/Algorithms/0826.%20Most%20Profit%20Assigning%20Work)| Medium | O(n log n)| O(n)||
1457-
|[828. Unique Letter String](https://leetcode.com/problems/unique-letter-string)| [Go](https://github.com/halfrost/LeetCode-Go/tree/master/Algorithms/0828.%20Unique%20Letter%20String)| Hard | O(n)| O(1)|❤️|
1457+
|[828. Unique Letter String](https://leetcode.com/problems/unique-letter-string)| [Go]()| Hard | O(n)| O(1)|❤️|
14581458
|[838. Push Dominoes](https://leetcode.com/problems/push-dominoes)| [Go](https://github.com/halfrost/LeetCode-Go/tree/master/Algorithms/0838.%20Push%20Dominoes)| Medium | O(n)| O(n)||
14591459
|[844. Backspace String Compare](https://leetcode.com/problems/backspace-string-compare)| [Go](https://github.com/halfrost/LeetCode-Go/tree/master/Algorithms/0844.%20Backspace%20String%20Compare)| Easy | O(n)| O(n) ||
14601460
|[845. Longest Mountain in Array](https://leetcode.com/problems/longest-mountain-in-array)| [Go](https://github.com/halfrost/LeetCode-Go/tree/master/Algorithms/0845.%20Longest%20Mountain%20in%20Array)| Medium | O(n)| O(1) ||

0 commit comments

Comments
 (0)