From 4f61848ebefdb7886fb2b494809ab3a80640c122 Mon Sep 17 00:00:00 2001 From: CyC2018 <1029579233@qq.com> Date: Mon, 19 Mar 2018 17:26:23 +0800 Subject: [PATCH] auto commit --- notes/剑指 offer 题解.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/notes/剑指 offer 题解.md b/notes/剑指 offer 题解.md index 232ce14e..e62e3817 100644 --- a/notes/剑指 offer 题解.md +++ b/notes/剑指 offer 题解.md @@ -2021,6 +2021,12 @@ public int GetUglyNumber_Solution(int N) { # 50. 第一个只出现一次的字符位置 +## 题目描述 + +在一个字符串 (1<=字符串长度 <=10000,全部由字母组成) 中找到第一个只出现一次的字符,并返回它的位置。 + +## 解题思路 + ```java public int FirstNotRepeatingChar(String str) { int[] cnts = new int[256];