Problem: Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Example: 本题的第一想法是开一个字母表计数 ...
分类:
其他好文 时间:
2016-12-28 07:49:01
阅读次数:
189
My First Solution: Use Stack and String operation, from the back of the string, find the first '?', push the right to stack. Depends on whether the ch ...
分类:
其他好文 时间:
2016-12-20 07:42:26
阅读次数:
207
For a given sorted array (ascending order) and a target number, find the first index of this number in O(log n) time complexity. If the target number ...
分类:
其他好文 时间:
2016-12-04 00:46:50
阅读次数:
200
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-12-03 07:55:35
阅读次数:
115
#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, retu ...
分类:
其他好文 时间:
2016-11-27 23:21:37
阅读次数:
179
题目描述: 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 assu ...
分类:
其他好文 时间:
2016-11-04 14:04:30
阅读次数:
136
jquery里互为逆过程的方法reverse 在jquery里,有不少互为逆过程的方法,如parent()与children(),parents()与find(),first()和last()等,这些联合起来有助于理解。 一 children()和parent() 这是一对遍历dom的jquery方 ...
分类:
Web程序 时间:
2016-10-30 11:42:41
阅读次数:
273
【LeetCode】First Missing Positive Given an unsorted integer array, find the first missing positive integer. For example, Given [1,2,0] return 3, and [3 ...
分类:
其他好文 时间:
2016-10-25 16:49:06
阅读次数:
252
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-10-25 02:03:22
阅读次数:
257
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-10-18 22:54:23
阅读次数:
104