- 博客(30)
- 收藏
- 关注
原创 【证明题】证明最大公共子图的NP完备
问题描述:Maxmum common subgraph:Input: Two graphs G1 = (V1,E1) and G2 = (V2,E2); a budget b.Output: Two set of nodes V1' ∈V1 and V2' ∈ V2 whose deletion leaves at least b nodes in each graph, an
2017-07-09 23:49:06
952
原创 leetcode【第十三周】颜色排序
问题描述:Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue.Here, we will use th
2017-05-30 17:20:44
287
原创 leetcode【第十一周】旋转链表
问题描述:Given a list, rotate the list to the right by k places, where k is non-negative.For example:Given 1->2->3->4->5->NULL and k = 2,return 4->5->1->2->3->NULL.问题分析:由题意容易想到,对一条单链表上
2017-05-05 16:52:43
238
原创 leetcode【第八周】链表划分
问题描述:Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.You should preserve the original relative order of the nodes
2017-04-16 21:11:56
246
原创 leetcode【第七周】Z字形排序字符串
问题描述:The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P A H N
2017-04-09 23:16:58
1963
原创 leetcode【第六周】字符串数字相乘
问题描述:Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2.Note:The length of both num1 and num2 is Both num1 and num2 contains
2017-04-02 19:12:45
474
原创 leetcode【第五周】寻找升序数组中的目标数值
问题描述:Given an array of integers sorted in ascending order, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the order of O(log n).
2017-03-20 18:55:18
839
原创 leetcode【第四周】 交换节点对
问题描述:Given a linked list, swap every two adjacent nodes and return its head.For example,Given 1->2->3->4, you should return the list as 2->1->4->3.Your algorithm should use only consta
2017-03-16 16:13:27
277
原创 leetcode【第三周】:输出圆括号
问题描述:Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, given n = 3, a solution set is:[ "((()))", "(()())", "(())()"
2017-03-12 13:54:07
261
原创 leetcode【第一周】:单链表表示的两个数字相加
问题描述:You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and
2017-02-22 17:57:47
2096
转载 Windows下MongoDB安装
MongoDB 下载MongoDB提供了可用于32位和64位系统的预编译二进制包,你可以从MongoDB官网下载安装,MongoDB预编译二进制包下载地址:http://www.mongodb.org/downloads注意:在 MongoDB2.2 版本后已经不再支持 Windows XP 系统。MongoDB for Windows 64-bit 适合 6...
2015-11-17 20:24:00
119
转载 MongoDB简单介绍
什么是MongoDB ?转载自:http://www.codingkit.com/mongodb/mongodb-intro.htmlMongoDB 是由C++语言编写的,是一个基于分布式文件存储的开源数据库系统。在高负载的情况下,添加更多的节点,可以保证服务器性能。MongoDB 旨在为WEB应用提供可扩展的高性能数据存储解决方案。MongoDB 将数据...
2015-11-17 20:24:00
142
转载 什么是NoSQL
转载自http://www.codingkit.com/mongodb/nosql.htmlNoSQL(NoSQL = Not Only SQL ),意即"不仅仅是SQL"。在现代的计算系统上每天网络上都会产生庞大的数据量。这 些数据有很大一部分是由关系数据库管理系统(RDMBSs)来处理。 1970年 E.F.Codd's提出的关系模型的论文 "A relati...
2015-11-13 20:57:00
113
转载 PHP 多维数组
一个数组中的值可以是另一个数组,另一个数组的值也可以是一个数组。依照这种方式,我们可以创建二维或者三维数组:实例<?php// A two-dimensional array:$cars = array ( array("Volvo",100,96), array("BMW",60,59), array("Toyota",110,100) );?>...
2015-11-12 20:30:00
123
转载 PHP是什么
PHP 是服务器端脚本语言。您应当具备的基础知识在继续学习之前,您需要对以下知识有基本的了解:HTMLCSS如果您希望首先学习这些项目,请在我们的 首页 访问这些教程。PHP 是什么?PHP 代表 PHP: Hypertext PreprocessorPHP 是一种使用广泛的开源的脚本语言PHP 脚本在服务器上执行PHP 可免费...
2015-11-12 01:40:00
154
转载 PHP 安装
您需要做什么?为了开始使用 PHP,您可以:找一个支持 PHP 和 MySQL 的 Web 主机在您自己的 PC 机上安装 Web 服务器,然后安装 PHP 和 MySQL使用支持 PHP 的 Web 主机如果您的服务器支持 PHP,那么您不需要做任何事情。只要在您的 web 目录中创建 .php 文件即可,服务器将自动为您解析这些文件。您...
2015-11-12 01:39:00
92
转载 Java 基本数据类型
变量就是申请内存来存储值。也就是说,当创建变量的时候,需要在内存中申请空间。内存管理系统根据变量的类型为变量分配存储空间,分配的空间只能用来储存该类型数据。因此,通过定义不同类型的变量,可以在内存中储存整数、小数或者字符。Java的两大数据类型:内置数据类型引用数据类型内置数据类型Java语言提供了八种基本类型。六种数字类型(四个整数型,两个浮点型...
2015-11-10 16:53:00
97
转载 Java 对象和类
Java作为一种面向对象语言。支持以下基本概念:多态继承封装抽象类对象实例方法消息解析本节我们重点研究对象和类的概念。对象:对象是类的一个实例,有状态和行为。例如,一条狗是一个对象,它的状态有:颜色、名字、品种;行为有:摇尾巴、叫、吃等。类:类是一个模板,它描述一类对象的行为和状态。Java中的对象现在让我...
2015-11-09 09:28:00
101
转载 Java 基础语法
一个Java程序可以认为是一系列对象的集合,而这些对象通过调用彼此的方法来协同工作。下面简要介绍下类、对象、方法和实例变量的概念。对象:对象是类的一个实例,有状态和行为。例如,一条狗是一个对象,它的状态有:颜色、名字、品种;行为有:摇尾巴、叫、吃等。类:类是一个模板,它描述一类对象的行为和状态。方法:方法就是行为,一个类可以有很多方法。逻辑运算、数据修改以及所有动作都是在...
2015-11-09 09:25:00
108
转载 Java 开发环境配置
window系统安装java下载JDK首先我们需要下载java开发工具包JDK,下载地址:http://www.oracle.com/technetwork/java/javase/downloads/index.html,点击如下下载按钮:下载后JDK的安装根据提示进行,还有安装JDK的时候也会安装JRE,一并安装就可以了。安装JDK,安装过程中可以自定义安装目...
2015-11-06 19:38:00
102
转载 Java常用实例大全
Java 环境设置实例Java 实例 – 如何编译一个Java 文件?Java 实例 – Java 如何运行一个编译过的类文件?Java 实例 - 如何执行指定class文件目录(classpath)?Java 实例 – 如何查看当前 Java 运行的版本?Java 字符串Java 实例 – 字符串比较Java 实例 - 查找字符串最后一次出现的位...
2015-11-04 19:55:00
133
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人