
leetcode
SkyCloud-CN
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode - 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. Note: You may assume the string contain only lowercase letters. 思路1 可以建立一个哈希表,原创 2017-03-01 19:01:00 · 358 阅读 · 0 评论 -
LeetCode-Best Time to Buy and Sell Stock II
题目 Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may complete as many transactions as you like (ie, buy o原创 2017-03-01 19:23:42 · 286 阅读 · 0 评论