![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode
文章平均质量分 83
Beyond_阿炳
C++er
展开
-
[Leet Code] 75. Sort Colors
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue. Here, we will use the integers原创 2016-08-16 21:53:54 · 360 阅读 · 0 评论 -
[矩阵]螺旋矩阵问题(上)
做leetcode的一道关于螺旋矩阵的题目:Spiral Matrix II 顺道看了一下螺旋矩阵的问题:先看leetcode题目:Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order.For example,Given n = 3,原创 2016-08-01 23:03:44 · 736 阅读 · 0 评论 -
leetcode-121. Best Time to Buy and Sell Stock
121. Best Time to Buy and Sell StockSay you have an array for which the ith element is the price of a given stock on dayi.If you were only permitted to complete at most one transaction (原创 2016-07-30 15:49:44 · 284 阅读 · 0 评论