自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(20)
  • 资源 (1)
  • 收藏
  • 关注

原创 LeetCode 2.两数相加

public static ListNode addTwoNumbers(ListNode l1, ListNode l2) { int j=0,temp=0,u; ListNode result=null,now=null; while(l1!=null||l2!=null){ System.out.println("j"+j); Sys...

2018-08-07 12:29:21 108

原创 一次作死!!

ssm 传值是不要integer和int混杂使用  。。会报错

2018-05-23 21:13:31 179

原创 lintcode 35. 翻转链表

/** * Definition for ListNode. * public class ListNode { *     int val; *     ListNode next; *     ListNode(int val) { *         this.val = val; *         this.next = null; *     } * } */public class ...

2018-03-01 11:25:34 151

原创 lintcode 搜索二维矩阵

public class Solution {    /*     * @param matrix: matrix, a list of lists of integers     * @param target: An integer     * @return: a boolean, indicate whether matrix contains target     *

2018-01-26 20:55:54 149

原创 lintcode 平面列表

public class Solution {    // @param nestedList a list of NestedInteger    // @return a list of integer    public List flatten(List nestedList) {        List list=new ArrayList();       

2018-01-26 20:26:08 197

原创 lintcode 二分查找

class Solution {    /**     * @param nums: The integer array.     * @param target: Target to find.     * @return: The first position of target. Position starts from 0.     */    public int

2018-01-26 17:39:11 131

原创 lintcode 字符串查找

public class Solution {    /*     * @param source: source string to be scanned.     * @param target: target string containing the sequence of characters to match     * @return: a index to the

2018-01-26 17:05:20 128

原创 lintcode fizz buzz问题

public class Solution {    /*     * @param n: An integer     * @return: A list of strings.     */    public List fizzBuzz(int n) {        List list=new ArrayList();        for(int i=1;i

2018-01-26 16:41:50 267

原创 lintcode 旋转字符串

public class Solution {    /*     * @param str: An array of char     * @param offset: An integer     * @return: nothing     */    public void rotateString(char[] str, int offset) {      

2018-01-26 16:32:55 139

原创 lintcode 合并排列数组 II

public class Solution {    /*     * @param A: sorted integer array A     * @param B: sorted integer array B     * @return: A new sorted integer array     */    public int[] mergeSortedArra

2018-01-26 15:59:01 111

转载 lintcode A+B

利用位运算来解决A+B的问题,可以将此问题转化为解决不进位相加和进位(carry bit)的两部分问题:1. 首先是不进位相加:x = A^B 先对A和B进行异或运算(XOR manupitation) , A 和B 中两位不相同的变为1,相同的变为 0, 同为1是不进位2. 其次是进位  y =(A&B)所以 A+B = A^B + (A&B)3.在循环中(A&B

2018-01-25 23:08:18 195

原创 lintcode 二叉树遍历

/** * Definition of TreeNode: * public class TreeNode { *     public int val; *     public TreeNode left, right; *     public TreeNode(int val) { *         this.val = val; *         this

2018-01-22 19:09:54 135

原创 lintcode 删除链表中的元素

/** * Definition for singly-linked list. * public class ListNode { *     int val; *     ListNode next; *     ListNode(int x) { val = x; } * } */public class Solution {    /*

2018-01-22 15:50:53 135

原创 lintcode 斐波纳契数列

public class Solution {    /*     * @param n: an integer     * @return: an ineger f(n)     */    public int fibonacci(int n) {        if(n==1){            return 0;        }else if(n==

2018-01-22 15:09:34 94

原创 org.apache.taglibs.standard.tlv.JstlCoreTLV.类无法找到

当standard包导入后确任然无法找到org.apache.taglibs.standard.tlv.JstlCoreTLV时可以将standard包放到tomcat的lib文件夹下

2018-01-03 18:43:04 1948

转载 编码解码原理

http://www.360doc.com/content/09/0320/07/14381_2860637.shtml

2017-11-27 12:13:10 272

原创 ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [S

web项目部署到tomcat出现错误  ContainerBase.addChild: start: org.apache.catalina.LifecycleException:Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ShowOrder]]

2017-11-26 10:13:10 23498

原创 jstl 报错 According to TLD or attribute directive in tag file, attribute test does not accept any expr

jstl 报错 According to TLD or attribute directive in tag file, attribute test does not accept any expressions将jsp头文件的 改为

2017-10-11 21:14:49 199

原创 jstl配置 c.tld not found

使用jstl标签报错JSTL异常:File "/WEB-INF/c.tld" not found将web.xml中的http://java.sun.com/jstl/core改为/tags/c

2017-10-11 20:38:39 1028 1

原创 重启tomcat连接数据库出错

web 数据库

2017-09-30 10:27:08 820

Jfinal3.x eclipse插件

Jfinal3.x eclipse插件 导入eclispe后可以直接创建Jfinal项目,无需繁琐配置

2018-04-11

空空如也

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

TA关注的人

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