
LeetCode
文章平均质量分 93
lllcfr1
这个作者很懒,什么都没留下…
展开
-
LeetCode (F)
First Missing Positive AC Rate: 546/2441My SubmissionsGiven an unsorted integer array, find the first missing positive integer.For example,Given [1,2,0] return 3,and [3,4,-1,1]原创 2013-10-03 00:15:04 · 560 阅读 · 0 评论 -
Leetcode (H)
House Robber Total Accepted: 3183 Total Submissions: 11595My SubmissionsQuestion Solution You are a professional robber planning to rob houses along a street. Each house has原创 2015-04-03 14:44:02 · 681 阅读 · 0 评论 -
LeetCode (L)
Largest Rectangle in HistogramTotal Accepted: 14600 Total Submissions: 69120 My Submissions Given n non-negative integers representing the histogram's bar height where the width of eac原创 2014-08-30 12:08:09 · 520 阅读 · 0 评论 -
LeetCode (M)
Maximum Depth of Binary Tree Total Accepted: 14814 Total Submissions: 34098My SubmissionsGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the原创 2014-04-15 15:54:46 · 659 阅读 · 0 评论 -
LeetCode (P)
Pow(x, n) Total Accepted: 5493 Total Submissions: 21464My SubmissionsImplement pow(x, n).class Solution { double power(double x, long long n) { if (n < 0) return 1 /原创 2014-01-12 12:16:58 · 722 阅读 · 0 评论 -
LeetCode (T)
Two Sum Total Accepted: 7313 Total Submissions: 33518My SubmissionsGiven an array of integers, find two numbers such that they add up to a specific target number.The function twoSum sh原创 2013-12-24 16:44:19 · 607 阅读 · 0 评论 -
LeetCode (J)
Jump Game Total Accepted: 3798 Total Submissions: 14230My SubmissionsGiven an array of non-negative integers, you are initially positioned at the first index of the array.Each element原创 2013-12-23 19:52:58 · 617 阅读 · 0 评论 -
LeetCode (V)
Valid Palindrome Total Accepted: 4292 Total Submissions: 20224My SubmissionsGiven a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.原创 2014-01-02 19:14:09 · 681 阅读 · 0 评论 -
LeetCode (I)
Integer to Roman Total Accepted: 2872 Total Submissions: 9293My SubmissionsGiven an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.原创 2013-12-30 16:48:01 · 578 阅读 · 0 评论 -
LeetCode (E)
Edit Distance AC Rate: 199/772My SubmissionsGiven two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 st原创 2013-09-24 10:54:55 · 726 阅读 · 0 评论 -
LeetCode (A)
LeetCode (interview questions online judge) http://www.leetcode.com/onlinejudgeid: lcfrall questions with codes will be updated here in this thread of blog.another programmer job discussion原创 2012-10-12 01:28:04 · 860 阅读 · 0 评论 -
LeetCode (U)
Unique Binary Search Trees Total Accepted: 3880 Total Submissions: 11207My SubmissionsGiven n, how many structurally unique BST's (binary search trees) that store values 1...n?For exam原创 2013-12-09 11:34:02 · 652 阅读 · 0 评论 -
LeetCode (G)
Gas Station Total Accepted: 3278 Total Submissions: 14438My SubmissionsThere are N gas stations along a circular route, where the amount of gas at station i is gas[i].You have a car wi原创 2013-11-16 15:19:27 · 664 阅读 · 0 评论 -
LeetCode (B)
Balanced Binary TreeOct 9 '12Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the t原创 2013-09-12 20:48:12 · 579 阅读 · 0 评论 -
LeetCode (Z)
ZigZag Conversion AC Rate: 200/827My SubmissionsThe string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this patter原创 2013-09-24 10:32:52 · 590 阅读 · 0 评论 -
LeetCode (D)
Decode Ways AC Rate: 471/2906My SubmissionsA message containing letters from A-Z is being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given a原创 2013-10-03 11:23:54 · 532 阅读 · 0 评论 -
LeetCode (N)
Next Permutation AC Rate: 761/2986My SubmissionsImplement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangem原创 2013-10-13 23:18:52 · 711 阅读 · 0 评论