Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Examples: 除了两次for循环,暂时没有想到N时间复杂度的解 ...
分类:
其他好文 时间:
2016-10-14 00:25:58
阅读次数:
111
Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Examples: ...
分类:
其他好文 时间:
2016-10-10 07:41:49
阅读次数:
147
First Missing Positive Given an unsorted integer array, find the first missing positive integer. For example,Given [1,2,0] return 3,and [3,4,-1,1] ret ...
分类:
其他好文 时间:
2016-10-05 07:13:29
阅读次数:
149
Given an unsorted integer array, find the first missing positive integer. For example,Given [1,2,0] return 3,and [3,4,-1,1] return 2. Your algorithm s ...
分类:
其他好文 时间:
2016-09-23 13:01:33
阅读次数:
132
Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Examples: Note: You may assume the ...
分类:
其他好文 时间:
2016-09-21 06:46:53
阅读次数:
118
Your task is simple:Find the first two primes above 1 million, whose separate digit sums are also prime.As example take 23, which is a prime whose dig ...
分类:
其他好文 时间:
2016-09-04 16:04:31
阅读次数:
197
Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Examples: Note: You may assume the ...
分类:
其他好文 时间:
2016-09-03 14:49:53
阅读次数:
113
[题目] Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Examples: Note: You may assum ...
分类:
其他好文 时间:
2016-09-02 00:22:19
阅读次数:
194
题目: Given an unsorted integer array, find the first missing positive integer. For example,Given [1,2,0] return 3,and [3,4,-1,1] return 2. Your algorit ...
分类:
其他好文 时间:
2016-08-31 23:56:36
阅读次数:
154
Given an unsorted integer array, find the first missing positive integer. For example, Given [1,2,0] return 3, and [3,4,-1,1] return 2. Your algorithm ...
分类:
其他好文 时间:
2016-08-30 10:47:28
阅读次数:
123