前言: 博客系统中需要邮件服务的功能,以前写过类似的功能,不过功能太简单了,仅仅是发送文本内容,现在尝试一下发送内嵌图片邮件!准备工作: 请参考:http://www.cnblogs.com/hujunzheng/p/4792831.html整体效果: 发送端:网易邮箱;接收端:qq邮箱。1....
分类:
编程语言 时间:
2016-01-01 18:56:26
收藏:
0 评论:
0 赞:
0 阅读:
575
题目来源https://leetcode.com/problems/minimum-path-sum/Given amxngrid filled with non-negative numbers, find a path from top left to bottom right whichmin...
分类:
编程语言 时间:
2016-01-01 18:55:36
收藏:
0 评论:
0 赞:
0 阅读:
197
JAVA: 1.问题: public boolean returnTest() { try { return true; } catch (Exception e) { } finally { return false; } } 以下代码返回值是什么? true false 解答: 参考这里 htt...
分类:
编程语言 时间:
2016-01-01 18:54:46
收藏:
0 评论:
0 赞:
0 阅读:
216
题目来源https://leetcode.com/problems/unique-paths-ii/Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique ...
分类:
编程语言 时间:
2016-01-01 18:52:46
收藏:
0 评论:
0 赞:
0 阅读:
309
1、线程池简介: 多线程技术主要解决处理器单元内多个线程执行的问题,它可以显著减少处理器单元的闲置时间,增加处理器单元的吞吐能力。 假设一个服务器完成一项任务所需时间为:T1 创建线程时间,T2 在线程中执行任务的时间,T3 销毁线程时间。 如果:T1 + T3 远大于 T2,则可以采用线程池,以提...
分类:
编程语言 时间:
2016-01-01 18:50:46
收藏:
0 评论:
0 赞:
0 阅读:
273
问题描述:给定一个n个顶点,m条边的有向图(其中某些边权可能为负,但保证没有负环)。请你计算从1号点到其他点的最短路(顶点从1到n编号)。输入格式:第一行两个整数n, m。接下来的m行,每行有三个整数u, v, l,表示u到v有一条长度为l的边。输出格式:共n-1行,第i行表示1号点到i+1号点的最...
分类:
编程语言 时间:
2016-01-01 18:44:46
收藏:
0 评论:
0 赞:
0 阅读:
169
递归算法的复杂度分析方法。 a、分析出复杂度公式(关于n的规模) b、求解这个公式1、齐次 例如求fabonaci的第n项,f(n) = f(n-1)+f(n-2) => f(n)-f(n-1)-f(n-2)=0 =>特征方程:x^2-x-...
分类:
编程语言 时间:
2016-01-01 18:43:56
收藏:
0 评论:
0 赞:
0 阅读:
229
题目来源https://leetcode.com/problems/rotate-list/Given a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1->2->3->4-...
分类:
编程语言 时间:
2016-01-01 18:43:16
收藏:
0 评论:
0 赞:
0 阅读:
352
题目来源https://leetcode.com/problems/unique-paths/A robot is located at the top-left corner of amxngrid (marked 'Start' in the diagram below).The robot c...
分类:
编程语言 时间:
2016-01-01 18:42:16
收藏:
0 评论:
0 赞:
0 阅读:
264
Spring IoC简单例子1.IHelloMessage.java1 package com.tony.spring.chapter01;2 3 public interface IHelloMessage {4 public String sayHello();5 }2.HelloWor...
分类:
编程语言 时间:
2016-01-01 18:41:46
收藏:
0 评论:
0 赞:
0 阅读:
234
(* * Super Object Toolkit * * Usage allowed under the restrictions of the Lesser GNU General Public License * or alternatively...
分类:
编程语言 时间:
2016-01-01 17:02:56
收藏:
0 评论:
0 赞:
0 阅读:
466
今天在导入maven项目的时候在problems视图中报错: Archive for required library:xxxxx/spring-beans-3.2.4.RELEASE.jar in project XXXXX cannot be read or is not a valid ZI....
分类:
编程语言 时间:
2016-01-01 17:02:16
收藏:
0 评论:
0 赞:
0 阅读:
4853