2018年5月10日

LeetCode第[46]题(Java):Permutations(求所有全排列) 含扩展——第[47]题Permutations 2

摘要: 题目:求所有全排列 难度:Medium 题目内容: Given a collection of distinct integers, return all possible permutations. 翻译:给定一组各不相同的整数,返回所有可能的排列。 Example: 我的思路:每种情况中,每一个 阅读全文

posted @ 2018-05-10 23:09 清风吹斜阳 阅读(383) 评论(0) 推荐(0) 编辑

LeetCode第[48]题(Java):Rotate Image

摘要: 题目:矩阵旋转 难度:Medium 题目内容: You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Note: You have to rotate t 阅读全文

posted @ 2018-05-10 00:00 清风吹斜阳 阅读(841) 评论(0) 推荐(0) 编辑

2018年5月8日

LeetCode第[44]题(Java):Wildcard Matching

摘要: 题目:通配符匹配 难度:hard 题目内容: Given an input string (s) and a pattern (p), implement wildcard pattern matching with support for '?' and '*'. The matching sho 阅读全文

posted @ 2018-05-08 17:04 清风吹斜阳 阅读(686) 评论(0) 推荐(0) 编辑

2018年5月7日

LeetCode第[42]题(Java):Trapping Rain Water (数组方块盛水)——HARD

摘要: 题目:接雨水 难度:hard 题目内容: Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able t 阅读全文

posted @ 2018-05-07 23:46 清风吹斜阳 阅读(560) 评论(0) 推荐(0) 编辑

LeetCode第[36]题(Java):Valid Sudoku

摘要: 题目:有效的数独表 难度:Medium 题目内容: Determine if a 9x9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules: A par 阅读全文

posted @ 2018-05-07 11:00 清风吹斜阳 阅读(305) 评论(0) 推荐(0) 编辑

2018年5月6日

LeetCode第[33]题(Java):Search in Rotated Sorted Array

摘要: 题目:在翻转有序中搜索 难度:Medium 题目内容: Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5,6,7] migh 阅读全文

posted @ 2018-05-06 21:25 清风吹斜阳 阅读(212) 评论(0) 推荐(0) 编辑

LeetCode第[34]题(Java):Search for a Range

摘要: 题目:搜索目标范围 难度:Medium 题目内容: Given an array of integers nums sorted in ascending order, find the starting and ending position of a given target value. Yo 阅读全文

posted @ 2018-05-06 19:50 清风吹斜阳 阅读(385) 评论(0) 推荐(0) 编辑

2018年5月3日

LeetCode第[29]题(Java):Divide Two Integers

摘要: 题目:两整数相除 难度:Medium 题目内容: Given two integers dividend and divisor, divide two integers without using multiplication, division and mod operator. Return 阅读全文

posted @ 2018-05-03 11:40 清风吹斜阳 阅读(292) 评论(0) 推荐(0) 编辑

2018年5月1日

spring的AOP动态代理--JDK代理和CGLIB代理区分以及注意事项

摘要: 大家都知道AOP使用了代理模式,本文主要介绍两个代理模式怎么设置以及区别,对原文一些内容进行了引用后加入了自己的理解和更深入的阐述: 一、JDK代理和CGLIB代理的底层实现区别* JDK代理只能针对实现了接口的类以反射的方式生成代理,而不能针对类 ,所以也叫“接口代理”* CGLIB是针对类实现代 阅读全文

posted @ 2018-05-01 16:52 清风吹斜阳 阅读(1075) 评论(0) 推荐(0) 编辑

2018年4月29日

Spring:通配符的匹配很全面, 但无法找到元素 XXXXX' 的声明

摘要: 问题:配置Spring的时候容易发生如题的这样一个经常性的错误,错误如下(以context为例) 再看看beans的约束: 咦?这不是有context的声明吗, 没错,不过还少了一些东西,那就是关于context的xsi的模式地址 xsi:schemaLocation 的更新 xmlns:全名是xm 阅读全文

posted @ 2018-04-29 22:39 清风吹斜阳 阅读(686) 评论(0) 推荐(0) 编辑

导航