归档 2016年8月21日

LeetCode Warm Up Contest解题报告

LeetCode热身赛是LeetCode举办的第一场比赛,共3道题目,比赛时长24小时。

比赛链接:https://leetcode.com/contest/warm-up-contest/

题解列表:

LeetCode 386. Lexicographical Numbers

LeetCode 387. First Unique Character in a String

LeetCode 388. Longest Absolute File Path

 

[LeetCode]First Unique Character in a String

题目描述:

LeetCode 387. First Unique Character in a String

Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1.

Examples:

s = "leetcode"
return 0.

s = "loveleetcode",
return 2.

Note: You ...

继续阅读

昨天

明天

归档