- 博客(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
13374
4
原创 算法题——Number of Islands(C++)BFS
由‘0’和‘1’组成的矩阵,上下左右视为相连,统计独立的'1's有多少块。**知识储备:** BFS广度优先搜索,常常借助queue来实现。
2017-06-21 22:33:21
770
原创 算法题——Linked List Cycle II(C++)链表中的环
找出链表中是否有环,若有,返回环开始的结点。解题思路: 要检测链表是否有环,使用快慢指针,慢指针一次走一个结点,快指针一次走两个结点,若有环,在遍历这个环一次或多次后,两个指针会相遇
2017-06-05 21:58:28
330
原创 算法题——Longest Substring Without Repeating Characters(C++)hash思想
找最长的不包含重复字符的子字符串
2017-05-24 15:21:26
319
原创 算法题——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
424
原创 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
3444
2
原创 算法题——Minimum Absolute Difference in BST(JAVA)二叉搜索树
对于一颗二叉搜索树,求父节点和子节点绝对值之差的最小值
2017-04-30 20:38:03
509
原创 算法题——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
385
原创 算法题——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
266
原创 在MyEclipse上同时部署两个Tomcat服务器
要在MyEclipse上同时部署两个服务器,最简单的方法是: 1.下载安装版Tomcat6,直接双击运行安装。 2.下载安装版Tomcat7,直接双击运行安装。 (两个不同版本的Tomcat是为了方便在MyEclipse上添加,如果安装同一个版本的服务器,会复杂很多), 3.在MyEclipse上添加两个服务器,Windows->Preference->搜索Tomcat。添加到对应版本。
2017-03-28 19:36:38
1932
原创 算法题——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
292
原创 算法题——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
246
原创 算法题——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
235
原创 算法题——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
401
原创 算法题——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
296
原创 算法题——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
288
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人