- 博客(3)
- 收藏
- 关注
原创 LeetCode —— Add Two Numbers
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */class Solution {public: ListNode *ad
2014-04-26 13:27:08 448
原创 LeetCode —— Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. For
2014-04-25 23:56:36 394
原创 Leetcode —— Best Time to Buy and Sell Stock
Say you have an array for which the ith element is the price of a given stock on day i.If you were only permitted to complete at most one transaction (ie, buy one and sell one share of the stock),
2014-04-25 11:29:54 535
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人