Skip to content

Commit 33bead0

Browse files
committed
0387 comments updated.
1 parent cd64c5f commit 33bead0

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

0387-First-Unique-Character-in-a-String/cpp-0387/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
using namespace std;
88

9+
10+
/// Using Hash Map
911
/// Time Complexity: O(len(s))
1012
/// Space Complexity: O(26)
1113
class Solution {
@@ -24,6 +26,7 @@ class Solution {
2426
}
2527
};
2628

29+
2730
int main() {
2831

2932
cout << Solution().firstUniqChar("leetcode") << endl;

0387-First-Unique-Character-in-a-String/java-0387/src/Solution.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/// Source : https://leetcode.com/problems/first-unique-character-in-a-string/description/
2+
/// Author : liuyubobobo
3+
/// Time : 2017-10-16
4+
5+
/// Using Hash Map
6+
/// Time Complexity: O(len(s))
7+
/// Space Complexity: O(26)
18
class Solution {
29
public int firstUniqChar(String s) {
310

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ email: [liuyubobobo@gmail.com](mailto:liuyubobobo@gmail.com)
318318
| 384 | [Shuffle an Array](https://leetcode.com/problems/shuffle-an-array/description/) | [solution](https://leetcode.com/problems/shuffle-an-array/solution/) | [C++](0384-Shuffle-an-Array/cpp-0384/) | | |
319319
| | | | | | |
320320
| 386 | [Lexicographical Numbers](https://leetcode.com/problems/lexicographical-numbers/description/) | | [C++](0386-Lexicographical-Numbers/cpp-0386/) | | |
321-
| 387 | [First Unique Character in a String](https://leetcode.com/problems/first-unique-character-in-a-string/description/) | | [C++](0387-First-Unique-Character-in-a-String/cpp-0387/) | [Java](0387-First-Unique-Character-in-a-String/java-0387/src/) | |
321+
| 387 | [First Unique Character in a String](https://leetcode.com/problems/first-unique-character-in-a-string/description/) | [solution](https://leetcode.com/problems/first-unique-character-in-a-string/solution/) | [C++](0387-First-Unique-Character-in-a-String/cpp-0387/) | [Java](0387-First-Unique-Character-in-a-String/java-0387/src/) | |
322322
| 388 | [Longest Absolute File Path](https://leetcode.com/problems/longest-absolute-file-path/description/) | | [C++](0388-Longest-Absolute-File-Path/cpp-0388/) | | |
323323
| 389 | [Find the Difference](https://leetcode.com/problems/find-the-difference/description/) | | [C++](0389-Find-the-Difference/cpp-0389/) | | |
324324
| 390 | [Elimination Game](https://leetcode.com/problems/elimination-game/description/) | | [C++](0390-Elimination-Game/cpp-0390/) | | |

0 commit comments

Comments
 (0)