自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

淡然坊

素处以默,妙机其微。

  • 博客(22)
  • 资源 (7)
  • 收藏
  • 关注

转载 eclipse报错:Cannot create a server using the selected type

在eclipse中安装tomcat服务器,报错" Cannot create a server using the selected type ".原因:以前安装的tomcat目录改变解决方法:一种方式:Window->preferences->Server->Runtime Environment,改变tomcat的目录为你安装的目录,然后保存,这样就可以建立Tomcat ser

2017-09-20 00:11:34 662

转载 java web 异常处理——转发至某个自定义的web错误页面

本篇博文主要讲解web项目的错误页面处理建立一个Dynamic Web Project,名称为SpringMVCDemo,配置 web.xml 首先配值web工程的配置描述符,这里只讲错误处理页面的配置,配置代码如下: error-page> error-code>404error-code> location>/404.jsplocation>

2017-09-19 23:50:33 2302

转载 Java设置大数非科学计数法显示

今天在编程过程中发现:java中,当要显示的数字是一个很大或者很小的数字时,系统会默认使用科学计数法显示。例如:[java] view plain copydouble testNum = 0.0001078137;  System.out.println(testNum);  运行结果为:1.078137E-4。但是

2017-09-19 23:46:10 2310 1

原创 leetcode 128. Longest Consecutive Sequence

Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given [100, 4, 200, 1, 3, 2],The longest consecutive elements sequence is [1, 2, 3

2017-09-10 17:51:21 354

原创 leetcode 116. Populating Next Right Pointers in Each Node

Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; }Populate each next pointer to point to its next right node. If t

2017-09-10 15:31:24 283

原创 leetcode 279. Perfect Squares

Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n.For example, given n = 12, return 3 because 12 = 4 + 4 + 4; given n =

2017-09-09 23:28:29 283

原创 leetcode 119. Pascal's Triangle II

Given an index k, return the kth row of the Pascal's triangle.For example, given k = 3,Return [1,3,3,1].Note:Could you optimize your algorithm to use only O(k) extra space?杨辉三角题,还算简单吧。

2017-09-07 23:38:17 245

原创 leetcode 289. Game of Life

According to the Wikipedia's article: "The Game of Life, also known simply as Life, is a cellular automaton(细胞自动机) devised by the British mathematician John Horton Conway in 1970."Given a board

2017-09-07 19:38:59 354

转载 macbook频繁掉线的解决办法

macbook在家老是掉线, 平均几分钟就掉, baidu了下也没找到解决办法, 还是得靠google啊!转自Wifi Keeps Dropping Macbook Pro 13in Retina Early 2015一. 断开wifi二. 打开finder三. 使用快捷键Cmd+Shft+G, 进入文件夹/Library/Preferences/SystemCon

2017-09-06 21:47:59 20240 1

原创 leetcode 670. Maximum Swap

Given a non-negative integer, you could swap two digits at most once to get the maximum valued number. Return the maximum valued number you could get.Example 1:Input: 2736Output: 7236Explana

2017-09-06 21:43:44 2393

原创 leetcode 410. Split Array Largest Sum

Given an array which consists of non-negative integers and an integer m, you can split the array into m non-empty continuous subarrays. Write an algorithm to minimize the largest sum among these m sub

2017-09-06 15:21:13 457

原创 leetcode 672. Bulb Switcher II

There is a room with n lights which are turned on initially and 4 buttons on the wall. After performing exactly m unknown operations towards buttons, you need to return how many different kinds of

2017-09-05 22:34:03 2412

原创 leetcode 671. Second Minimum Node In a Binary Tree

Given a non-empty special binary tree consisting of nodes with the non-negative value, where each node in this tree has exactly twoor zero sub-node. If the node has two sub-nodes, then this node's v

2017-09-05 14:38:43 500

原创 leetcode 650. 2 Keys Keyboard

Initially on a notepad only one character 'A' is present. You can perform two operations on this notepad for each step:Copy All: You can copy all the characters present on the notepad (partial c

2017-09-05 13:51:27 320

原创 leetcode 669. Trim a Binary Search Tree

Given a binary search tree and the lowest and highest boundaries as L and R, trim the tree so that all its elements lies in [L, R] (R >= L). You might need to change the root of the tree, so the r

2017-09-04 17:13:08 2203 1

原创 leetcode 661. Image Smoother

Given a 2D integer matrix M representing the gray scale of an image, you need to design a smoother to make the gray scale of each cell becomes the average gray scale (rounding down 四舍五入取靠近零值的舍入数字 ) of

2017-09-04 15:43:19 1127

原创 leetcode 653. Two Sum IV - Input is a BST

Given a Binary Search Tree and a target number, return true if there exist two elements in the BST such that their sum is equal to the given target.Example 1:Input: 5 / \ 3 6 / \

2017-09-04 14:29:59 1976

原创 leetcode 667. Beautiful Arrangement II

Given two integers n and k, you need to construct a list which contains n different positive integers ranging from 1 to n and obeys the following requirement: Suppose this list is [a1, a2, a3,

2017-09-03 16:00:57 314

原创 leetcode 655. Print Binary Tree

Print a binary tree in an m*n 2D string array following these rules:The row number m should be equal to the height of the given binary tree.The column number n should always be an odd number.The r

2017-09-03 14:41:21 1375

原创 leetcode 657. Judge Route Circle

Initially, there is a Robot at position (0, 0). Given a sequence of its moves, judge if this robot makes a circle, which means it moves back to the original place.The move sequence is represented by

2017-09-02 20:18:37 444

原创 leetcode 654. Maximum Binary Tree

Given an integer array with no duplicates. A maximum tree building on this array is defined as follow:The root is the maximum number in the array.The left subtree is the maximum tree constructed f

2017-09-02 19:32:33 1350

原创 leetcode 154. Find Minimum in Rotated Sorted Array II

Follow up for "Find Minimum in Rotated Sorted Array":What if duplicates are allowed?Would this affect the run-time complexity? How and why?Suppose an array sorted in ascending order is rotated

2017-09-02 10:45:30 293

FormatDatalibsvm.xls(libSVM的数据格式转换工具)

这个工具能够生成libsvm数据,直观简单,效率高,方便易行。其实只是利用了excel的宏。

2018-01-09

[数学建模方法与分析].(新西兰)Mark.M.Meerschaert.清晰PDF版

本书系统介绍数学建模的理论及应用,作者将数学建模的过程归结为五个步骤(即“五步方法”),并贯穿全书各类问题的分析和讨论中.阐述了如何使用数学模型来解决实际问题.提出了在组建数学模型并且进行分析得到结论之后如何进行模型的灵敏性和稳健性的分析.将数学建模方法与计算机使用密切结合,不仅通过对每个问题的讨论给予很好的示范,而且配备了大量的习题训练。本书适合作为高等院校相关课程的教材和参考书,也可供参加国内外数学建模竞赛的人员参考,以及数学应用相关的专业人员参考。

2017-09-15

mac Sublime Text3官方网站下载(附注册码)

mac Sublime Text3官方网站下载(附注册码)

2016-11-16

有名的combobox下拉框插件压缩后的js版本

combobox下拉框插件,具体的api可见combobox官网,主要特色是很方便地进行级联选择,这里是js压缩后的版本,使用时之间放入html即可,更加轻巧可用。

2016-09-23

select2插件

非常好用的下拉框插件,支持级联选择,加图片等等。。。

2016-09-23

一个非常好用的下拉框插件

一个非常好用的下拉框插件

2016-09-23

好用的combobox下拉框

好用的combobox下拉框

2016-09-22

空空如也

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

TA关注的人

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