LeetCode
guliang_fenfen
这个作者很懒,什么都没留下…
展开
-
LeetCode---set-matrix-zeros
hi,我终于开通了自己的csdn博客,想在这里记录自己成长的点点滴滴。从算法开始,leetcode刷题。LeetCode ----set-matrix-zeros(空间复杂度O(1));原题描述:Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in原创 2016-12-16 10:32:22 · 387 阅读 · 0 评论 -
LeetCode---UniquePaths
LeetCode---UniquePaths先放下原题描述:A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).The robot can only move either down or right at any point原创 2016-12-16 15:50:15 · 222 阅读 · 0 评论 -
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 shar原创 2016-12-29 18:21:12 · 246 阅读 · 0 评论