- 博客(9)
- 资源 (3)
- 收藏
- 关注
原创 227. Basic Calculator II
Implement a basic calculator to evaluate a simple expression string.The expression string contains only non-negative integers, +, -, *, / operators and empty spaces . The integer division should trun...
2018-04-19 16:36:57 140
原创 226. Invert Binary Tree
Invert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4 / \ 7 2 / \ / \9 6 3 1递归永远都是一个不错的选择:TreeNode* invertTree(TreeNode* root) { if(!root)return ...
2018-04-19 16:33:29 53
原创 225. Implement Stack using Queues
Implement the following operations of a stack using queues.push(x) -- Push element x onto stack.pop() -- Removes the element on top of the stack.top() -- Get the top element.empty() -- Return whether ...
2018-04-19 16:32:20 79
原创 224. Basic Calculator
Implement a basic calculator to evaluate a simple expression string.The expression string may contain open ( and closing parentheses ), the plus + or minus sign -, non-negative integers and empty spac...
2018-04-19 16:28:55 99
原创 223. Rectangle Area
Find the total area covered by two rectilinear rectangles in a 2D plane.Each rectangle is defined by its bottom left corner and top right corner as shown in the figure.Assume that the total area is ne...
2018-04-19 16:19:13 82
原创 222. Count Complete Tree Nodes
Given a complete binary tree, count the number of nodes.Definition of a complete binary tree from Wikipedia:In a complete binary tree every level, except possibly the last, is completely filled, and a...
2018-04-19 16:13:56 85
原创 221. Maximal Square
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area.For example, given the following matrix:1 0 1 0 01 0 1 1 11 1 1 1 11 0 0 1 0Return...
2018-04-17 10:38:20 71
原创 218. The Skyline Problem
A city's skyline is the outer contour of the silhouette formed by all the buildings in that city when viewed from a distance. Now suppose you are given the locations and height of all the buildings as...
2018-04-15 21:03:38 113
原创 Nutch-1.9+solr4.6.1+tomcat8.5.29搭建一个搜索引擎(windows10)
一、需要的工具(尽量使用下面这些版本的软件,否则的话,不知道会出现什么问题)tomcat8.5.29(选择压缩包吧,比较方便):tomcat8.5.29apache-nutch-1.9-bin.tar.gz:nutch-1.9solr-4.6.1.tgz:solr4.6.1eclipse:eclipseIK-Analyzer-2012FF:IK-Analyzer-2012FFhadoop-core...
2018-04-13 10:24:57 534 1
骑士周游列国回溯递归解法
2017-04-05
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人