- 博客(10)
- 收藏
- 关注
原创 LeetCode专题:53. Maximum Subarray
Maximum SubarraGiven an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Example: Input: [-2,1,-3,4,-1,2,1,-5,4], Ou...
2018-08-22 00:42:05 242
原创 LeetCode专题:231. Power of Two
Power of TwoGiven an integer, write a function to determine if it is a power of two.Example 1:Input: 1Output: true Explanation: 20 = 1Example 2:Input: 16Output: trueExplanation: 24 = 16Exam...
2018-08-16 22:18:41 159
原创 LeetCode专题:88. Merge Sorted Array
88. Merge Sorted ArrayGiven two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.Note:The number of elements initialized in nums1 and nums2 are m and n respectiv...
2018-08-16 21:59:02 185
原创 LeetCode专题:136.Single Number
Single NumberGiven a non-empty array of integers, every element appears twice except for one. Find that single one.Note:Your algorithm should have a linear runtime complexity. Could you implemen...
2018-08-14 22:55:10 173
原创 LeetCode专题:268. Missing Number
Missing NumberGiven an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array.Example 1:Input: [3,0,1]Output: 2Example 2:Input: [9,6,4,2,3,5...
2018-08-14 22:28:32 129
原创 LeetCode专题:242. Valid Anagram
242. Valid Anagram题目Given two strings s and t , write a function to determine if t is an anagram of s.Example 1:Input: s = "anagram", t = "nagaram"Output: trueExample 2:Input: s = "rat", t ..
2018-08-14 21:56:11 199
原创 Flume详解
概述最近翻Flume官网又有了新的收获,准备对Flume进行一个详细的描述,Fume到底是什么,有什么用,怎么用,选型问题,各种参数选择。当然对于参数的选择作者在以前刚开始学习的时候遇到过不少坑,不同的版本参数是不一样的,大家一定要对应着自己的版本去官网查找,官网是最权威的。有什么不对的地方大家相互交流学习。Flume介绍老规矩官网地址Flume是一种分布式,可靠,高可用的服务,用...
2018-08-08 23:41:38 494
原创 Spring Boot项目搭建访问时404
错误@RestController@RequestMapping(value = "/LLGA")public class TestController { @RequestMapping(value = "/test" ,method = RequestMethod.GET) public String test1(@RequestParam(value = "JobN...
2018-08-07 17:10:31 3716
原创 Mybatis使用中遇到的错误
Mybatis报错错误1### Error querying database. Cause: java.lang.IllegalArgumentException: invalid comparison: java.util.ArrayList and java.lang.String### Cause: java.lang.IllegalArgumentException: i...
2018-08-02 19:30:22 870
原创 map的几种遍历方式和其他操作
/* map遍历方式1 */ public static void iterator1(){ Iterator<Map.Entry<String,String >> iterator =map.entrySet().iterator(); while (iterator.hasNext()){ ...
2018-08-02 09:59:14 236
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人