- 博客(8)
- 资源 (1)
- 收藏
- 关注
原创 LeetCode:Plus One
Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at the head of the list.// https://oj.leetco
2015-01-29 23:00:31 905
原创 LeetCode:Set Matrix Zeroes
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.click to show follow up.Follow up:Did you use extra space?A straight forward solution using O(mn)
2015-01-29 20:17:03 699
原创 LeetCode:Search in Rotated Sorted Array II
Follow up for "Search in Rotated Sorted Array":What if duplicates are allowed?Would this affect the run-time complexity? How and why?Write a function to determine if a given target is in the arr
2015-01-29 19:29:11 575
原创 LeetCode:Spiral Matrix II
Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order.For example,Given n = 3,You should return the following matrix:[ [ 1, 2, 3 ], [ 8, 9, 4 ], [
2015-01-27 22:50:45 609
原创 LeetCode:Search a 2D Matrix
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:Integers in each row are sorted from left to right.The first integer of each
2015-01-27 22:11:53 693
原创 LeetCode:Minimum Path Sum
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.Note: You can only move either down or right at
2015-01-27 21:16:43 690
原创 梦想 震撼世界(转自网络)
I don’t know what that dream is that you have. I don’t care how disappointing it might have been, as you’ve been working toward that dream. That dream that you are holding in your mind that is possibl
2015-01-08 09:18:24 770
原创 Effective C++学习笔记一
Effective C++学习笔记一条款01:视C++为一个语言联邦Ø CØ Object-Oriented C++Ø Template C++//泛型编程部分(generic programming)Ø STLC++高效编程守则视情况而变化,取决与你使用C++的哪一部分。 条款02:尽量以const, enum, inline替换#defineØ 对于单纯常量
2015-01-03 09:51:21 875
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人