自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 680. Valid Palindrome II

class Solution { public boolean validPalindrome(String s) { int cnt = 0; if(checkStr(s, cnt)) { if(cnt < 2) { return true; } } ...

2019-04-30 16:32:18 133

原创 826. Most Profit Assigning Work

思路:如何处理3个数组之间的映射关系 class Solution { public int maxProfitAssignment(int[] difficulty, int[] profit, int[] worker) { int[] index = new int[worker.length]; for(int i = 0; i < wor...

2019-04-24 19:52:57 198

转载 一致性哈希实现

public class ConsistenHashWithVN { private static String[] servers = { "192.168.0.0:111", "192.168.0.1:111", "192.168.0.2:111", "192.168.0.3:111",...

2019-04-24 15:35:25 147

原创 class path resource [applicationContext.xml] cannot be opened because it does not exist

1.建maven项目 2.在pom中添加依赖 <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>4....

2019-04-23 17:19:44 3716

原创 Java中的classpath

Java项目一般会有很多配置文件 怎么将这些文件加载到Java代码里?Spring是这么用的: 看到一个奇怪的东东:classpath前缀,这是啥?这个问题放一放,来看编译后的jar包目录: 继续展开目录得到: 看到了吧,所有的配置文件都在classes目录下,那么classpath是啥呢?你可以理解为就是编译后的classes下的路径! ...

2019-04-19 20:44:45 158

原创 MyBatis调用存储备份过期数据

创建存储过程: delimiter # create procedure sps.backup_coupon_history_data(IN beginIndex INT, IN endIndex INT) begin INSERT INTO sps_active_rp_detail_his_2019 select * from sps_active_rp_detail whe...

2019-04-04 13:55:18 488

常用算法资源:算法pdf

常用算法资源:算法pdf

2023-12-23

空空如也

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

TA关注的人

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