We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ca291d commit 1189ffcCopy full SHA for 1189ffc
src/main/java/com/fishercoder/solutions/_387.java
@@ -1,6 +1,8 @@
1
package com.fishercoder.solutions;
2
3
-/**Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1.
+/**
4
+ * 387. First Unique Character in a String
5
+ * Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1.
6
7
Examples:
8
@@ -12,6 +14,7 @@
12
14
Note: You may assume the string contain only lowercase letters.
13
15
16
*/
17
+
18
public class _387 {
19
20
public static int firstUniqChar(String s) {
0 commit comments