自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(20)
  • 收藏
  • 关注

转载 Lintcode436 Maximal Square solution 题解

【题目描述】 Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area. 在一个二维01矩阵中找到全为1的最大正方形。 ...

2018-04-20 09:43:00 140

转载 Lintcode433 Number of Islands solution 题解

【题目描述】 Given a boolean 2D matrix,0is represented as the sea,1is represented as the island. If two 1 is adjacent, we consider them in the same ...

2018-04-19 18:12:00 126

转载 Lintcode430 Scramble String solution 题解

【题目描述】 Given a strings1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. Below is one possible ...

2018-04-18 10:54:00 119

转载 Lintcode428 Pow(x, n) solution 题解

【题目描述】 Implement pow(x, n). Notice You don't need to care about the precision of your answer, it's acceptable if the expected answer and your a...

2018-04-17 14:14:00 144

转载 Lintcode427 Generate Parentheses solution 题解

【题目描述】 Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. 【题目链接】 www.lintcode.com/en/proble...

2018-04-16 16:10:00 106

转载 Lintcode426 Restore IP Addresses solution 题解

【题目描述】 Given a string containing only digits, restore it by returning all possible valid IP address combinations. 给一个由数字组成的字符串。求出其可能恢复为的所有IP地址。 ...

2018-04-15 12:01:00 89

转载 Lintcode425 Letter Combinations of a Phone Number solution 题解

【题目描述】 Given a digit string excluded01, return all possible letter combinations that the number could represent. A mapping of digit to letters (...

2018-04-15 11:59:00 124

转载 Lintcode424 Evaluate Reverse Polish Notation solution 题解

【题目描述】 Evaluate the value of an arithmetic expression inReverse Polish Notation. Valid operators are+,-,*,/. Each operand may be an integer ...

2018-04-12 20:48:00 89

转载 Lintcode423 Valid Parentheses solution 题解

【题目描述】 Given a string containing just the characters'(', ')','{','}','['and']', determine if the input string is valid. 给定一个字符串所表示的括号序列,包含以...

2018-04-11 10:45:00 114

转载 Lintcode422 Length of Last Word solution 题解

【题目描述】 Given a string s consists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string. If t...

2018-04-10 19:21:00 86

转载 Lintcode374 Spiral Matrix solution 题解

【题目描述】 Given a matrix ofmxnelements (mrows,ncolumns), return all elements of the matrix in spiral order. 给定一个包含mxn个要素的矩阵,(m行,n列),按照螺旋顺序,返回该矩...

2018-02-25 11:52:00 98

转载 Lintcode373 Partition Array by Odd and Even solution 题解

【题目描述】 Partition an integers array into odd number first and even number second. 分割一个整数数组,使得奇数在前偶数在后。 【题目链接】 www.lintcode.com/en/problem/partit...

2018-02-24 14:19:00 99

转载 Lintcode372 Delete Node in the Middle of Singly Linked List solution 题解

【题目描述】 Implement an algorithm to delete a node in the middle of a singly linked list, given only access to that node. 给定一个单链表中的一个等待被删除的节点(非表头或表尾)...

2018-02-23 11:11:00 72

转载 Lintcode371 Print Numbers by Recursion solution 题解

【题目描述】 Print numbers from 1 to the largest number with N digits by recursion. Notice It's pretty easy to do recursion like: recursion(i) { if ...

2018-02-22 11:39:00 74

转载 Lintcode370 Convert Expression to Reverse Polish Notation solution 题解

【题目描述】 Given an expression string array, return the Reverse Polish notation of this expression. (remove the parentheses) 给定一个表达式字符串数组,返回该表达式的逆波兰表...

2018-02-21 16:01:00 193

转载 Lintcode368 Expression Evaluation solution 题解

【题目描述】 Given an expression string array, return the final result of this expression Notice:The expression contains only integer,+,-,*,/,(,). 给一个...

2018-02-19 16:27:00 140

转载 Lintcode367 Expression Tree Build solution 题解

【题目描述】 The structure of Expression Tree is a binary tree to evaluate certain expressions. All leaves of the Expression Tree have an number string...

2018-02-18 15:29:00 92

转载 Lintcode366 Fibonacci solution 题解

【题目描述】 Find theNth number in Fibonacci sequence. A Fibonacci sequence is defined as follow: The first two numbers are 0 and 1. Theith number ...

2018-02-17 14:10:00 82

转载 Lintcode365 Count 1 in Binary solution 题解

【题目描述】 Count how many 1 in binary representation of a 32-bit integer. 计算在一个 32 位的整数的二进制表示中有多少个1. 【题目链接】 www.lintcode.com/en/problem/count-1-in-...

2018-02-16 12:35:00 137

转载 Lintcode364 Trapping Rain Water II solution 题解

【题目描述】 Givennxmnon-negative integers representing an elevation map 2d where the area of each cell is1x1, compute how much water it is able to...

2018-02-15 19:24:00 85

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除