自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 新手超详细记录:Docker for Windows打包制作tomcat镜像并部署java web项目

项目基本情况我用的是普通的java web项目,其中采用了struts框架,没有main函数,Makefile实在写不出来,因此spring框架的那种打包docker的方式并不适用。 开发工具用的是MyEclipse10,平常在本地运行的时候就是部署到服务器上,将服务器run起来就可以通过端口和项目名访问,如localhost:8080/demo 准备工作1、下载安装D

2018-01-24 18:45:28 13270 4

原创 算法概论 第八章课后题8.3

证明 STINGY SAT 为NP 完全问题

2017-06-23 19:53:09 320

原创 算法题——Number of Islands(C++)BFS

由‘0’和‘1’组成的矩阵,上下左右视为相连,统计独立的'1's有多少块。**知识储备:** BFS广度优先搜索,常常借助queue来实现。

2017-06-21 22:33:21 705

原创 算法题——Unique Paths(C++)动态规划

题目描述: 从左上角到右下角,每次只能向下或者向右走一步,有多少种走法。知识储备:动态规划

2017-06-13 18:12:24 447

原创 算法题——Linked List Cycle II(C++)链表中的环

找出链表中是否有环,若有,返回环开始的结点。解题思路: 要检测链表是否有环,使用快慢指针,慢指针一次走一个结点,快指针一次走两个结点,若有环,在遍历这个环一次或多次后,两个指针会相遇

2017-06-05 21:58:28 304

原创 算法题——Course Schedule(C++)有向图求解BFS

将课程顺序转换为有向图的形式,该有向图中无环则为true。

2017-06-02 00:26:47 634

原创 算法题——Longest Substring Without Repeating Characters(C++)hash思想

找最长的不包含重复字符的子字符串

2017-05-24 15:21:26 286

原创 算法题——Longest Palindromic Substring(JAVA)DP字符串

题目描述: Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. 找最长的回文字符串

2017-05-19 11:14:40 390

原创 codeblocks-16.01mingw-setup安装仍然cant find compiler executable for GNU GCC Compiler

codeblocks-16.01mingw-setup 安装仍然 cant find compiler executable in your configured search paths for GNU GCC Compiler 解决办法

2017-05-19 10:58:35 3370 3

原创 算法题——Maximum Gap(JAVA)基数排序

求出数组排序后相连两个数之间最大的差值。

2017-05-13 19:53:02 326

原创 算法题——Merge k Sorted Lists(JAVA)合并链表

合并若干个有序列表

2017-05-06 12:08:45 364

原创 算法题——Minimum Absolute Difference in BST(JAVA)二叉搜索树

对于一颗二叉搜索树,求父节点和子节点绝对值之差的最小值

2017-04-30 20:38:03 466

原创 算法题——Ones and Zeroes(JAVA)动态规划

有一定数量的0和1,组成数组中尽量多的字符串。类似于一个二维的背包动态规划问题。

2017-04-22 13:38:29 262

原创 算法题——Sort Colors(JAVA)快排

题目描述: 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.快排应用

2017-04-14 14:56:51 361

原创 算法题——House Robber(JAVA)

一个数组,不能取连续的两个值,求可得到和的最大值。

2017-04-09 22:41:12 331

原创 算法题——Best Time to Buy and Sell Stock II(JAVA)Greedy

题目描述: Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit.

2017-03-31 17:04:58 230

原创 在MyEclipse上同时部署两个Tomcat服务器

要在MyEclipse上同时部署两个服务器,最简单的方法是: 1.下载安装版Tomcat6,直接双击运行安装。 2.下载安装版Tomcat7,直接双击运行安装。 (两个不同版本的Tomcat是为了方便在MyEclipse上添加,如果安装同一个版本的服务器,会复杂很多), 3.在MyEclipse上添加两个服务器,Windows->Preference->搜索Tomcat。添加到对应版本。

2017-03-28 19:36:38 1887

原创 算法题——Minimum Depth of Binary Tree(JAVA)

题目描述: Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node.

2017-03-26 21:15:37 261

原创 算法题——Convert Sorted List to Binary Search Tree(JAVA)

题目描述: Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.

2017-03-19 01:09:40 220

原创 算法题——Find the Duplicate Number(JAVA)

题目描述: Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must exist. Assume that there is only one duplicate nu

2017-02-26 23:29:16 206

原创 算法题——Missing Number(JAVA)

题目描述: Given an array containing n distinct numbers taken from 0, 1, 2, …, n, find the one that is missing from the array.For example, Given nums = [0, 1, 3] return 2.Note: Your algorithm should

2017-02-26 20:54:57 363

原创 算法题——Single Number(JAVA)

题目描述: Given an array of integers, every element appears twice except for one. Find that single one.Note: Your algorithm should have a linear runtime complexity. Could you implement it without usin

2017-02-26 16:46:07 274

原创 算法题——Find the Difference(JAVA)

题目描述: Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more letter at a random position. Find the letter that w

2017-02-26 14:29:49 257

空空如也

空空如也

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

TA关注的人

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