自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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

机器学习实战.zip

Peter Harrington著,使用Python重新实现主流机器学习算法,中英文均有

2019-07-25

apach-nutch-1.9-bin.tar.gz

用于搭建一个建议搜索引擎的工具,相比nutch2.x,nutch1.x比较稳定,并且不需要安装hbase等非关系数据库

2018-04-12

骑士周游列国回溯递归解法

在一张国际象棋棋盘上(8*8方格),骑士(knight,马)位于任意一个位置。问如何才能让骑士不重不漏的经过棋盘上的每个格?本问题中已知骑士位置(m,n),其中0=<m,n<=8,要求给出骑士行走路径,路径可用8*8矩阵输出,其中值表示骑士到达此位置行走的步数(初始为1);

2017-04-05

空空如也

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

TA关注的人

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