![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
文章平均质量分 77
一万小时
据说努力一万小时就会有质的变化,试过了是真的,发现自己老了416.6666666667天
展开
-
leetcode->Evaluate Reverse Polish Notation
每天一刷,强迫学习原创 2014-07-23 10:43:23 · 352 阅读 · 0 评论 -
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原创 2014-12-26 00:05:19 · 293 阅读 · 0 评论 -
Simplify Path
Given an absolute path for a file (Unix-style), simplify it.For example,path = "/home/", => "/home"path = "/a/./b/../../c/", => "/c"click to show corner cases.Corner Cases:Did原创 2014-12-22 23:36:12 · 313 阅读 · 0 评论 -
Single Number
Given an array of integers, every element appears twice except for one. Find that single one.Note:Your algorithm should have a linear runtime complexity. Could you implement it without using e原创 2014-12-22 22:23:38 · 284 阅读 · 0 评论 -
Length of Last Word
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.If the last word does not exist, return 0.Note: A word is原创 2014-12-22 22:38:30 · 267 阅读 · 0 评论 -
leetcode->Remove Duplicates from Sorted Array
Remove Duplicates from Sorted Array Total Accepted: 21252 Total Submissions: 65986My SubmissionsGiven a sorted array, remove the duplicates in place such that each element appear only on原创 2014-08-07 15:59:20 · 279 阅读 · 0 评论 -
leetcode->Candy
每日一刷,强迫学习原创 2014-08-06 16:08:26 · 293 阅读 · 0 评论 -
leetCode->Climbing Stairs
每天一刷,强迫学习You are climbing a stair case. It takes n steps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?很经典的面试题,斐波那契求原创 2014-07-25 15:29:48 · 324 阅读 · 0 评论 -
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 ], [原创 2014-07-24 20:52:17 · 402 阅读 · 0 评论 -
leetCode->Search Insert Position
每天一刷 ,强迫学习Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.You may assume no dupl原创 2014-07-24 10:38:52 · 300 阅读 · 0 评论 -
leetCode->Single Number
每天一刷,强迫学习Given an array of integers, every element appears twice except for one. Find that single one.Note:Your algorithm should have a linear runtime complexity. Could you implement it with原创 2014-07-23 21:48:41 · 287 阅读 · 0 评论 -
leetCode->Add Binary
mGiven two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"Return "100".原创 2014-07-23 20:36:51 · 361 阅读 · 0 评论 -
leecode->Max Points on a Line
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.原创 2014-07-23 11:23:03 · 516 阅读 · 0 评论 -
leetcode->Reverse Words in a String
每天一刷,强迫学习Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".click to show clarification.Clarification:原创 2014-07-23 10:21:57 · 496 阅读 · 1 评论 -
leetcode->Reverse Integer
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */package Reverse原创 2014-12-12 00:07:40 · 299 阅读 · 0 评论