自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 1 Kylin install-hadoop

系统环境OS:10.12.5 (16F73)java version “1.8.0_121”Hadoop 2.7.5MAC ssh localhost设置偏好设置-共享-打开远程共享ssh-keygen -t dsa -P ‘’ -f ~/.ssh/id_dsacat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keyshad...

2019-05-30 10:56:18 140

原创 Linux进程间通信

一、进程间通信-管道 https://www.linuxidc.com/Linux/2018-04/151680.htm二、进程间通信-命名管道 https://www.linuxidc.com/Linux/2018-04/151681.htm三、进程间通信-消息队列 https://www.linuxidc.com/Linux/2018-04/151682.htm四、进程间通信-共享内存 ...

2019-05-28 15:26:06 230

原创 HashMap java8源码详解

数据结构数组+链表/红黑树,红黑树是java8的改进。常量含义// 默认初始容量 16,2的4次方static final int DEFAULT_INITIAL_CAPACITY = 1 << 4; // aka 16// 最大容量,2的30次方static final int MAXIMUM_CAPACITY = 1 << 30;...

2019-05-23 15:32:02 463

原创 leetcode-0009-Palindrome Number(回文整数)

题目Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward.Example 1:Input: 121Output: trueExample 2:Input: -121Output: falseExplana...

2019-05-21 20:26:10 140

原创 leetcode-0008-String to Integer (atoi)

题目Implement atoi which converts a string to an integer.The function first discards as many whitespace characters as necessary until the first non-whitespace character is found. Then, starting from t...

2019-05-21 19:54:29 154

原创 leetcode-0006-ZigZag Conversion(Z字型变换)

题目The string “PAYPALISHIRING” is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P A H NA P L S I ...

2019-05-21 11:32:04 163

原创 leetcode-0007-Reverse Integer(反转整数)

题目Given a 32-bit signed integer, reverse digits of an integer.Example 1:Input: 123Output: 321Example 2:Input: -123Output: -321Example 3:Input: 120Output: 21Note:Assume we are dealing wi...

2019-05-20 19:55:27 225

原创 leetcode-0005-Longest Palindromic Substring(最长回文子串)

题目Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.Example 1:Input: "babad"Output: "bab"Note: "aba" is also a valid answer.Exam...

2019-05-20 12:59:34 142

原创 markdown语法学习&记录

一 基础语法1 标题# 这是一级标题## 这是二级标题### 这是三级标题#### 这是四级标题##### 这是五级标题###### 这是六级标题2 字体倾斜加粗倾斜&加粗删除线*倾斜***加粗*****倾斜&加粗***~~删除线~~3 引用支持嵌套第一层第二层第三层> 第一层>> 第二层>&g...

2019-05-20 11:50:50 161

原创 leetcode-0004-Median of Two Sorted Arrays

题目There are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).You may assume nums1 and ...

2019-05-18 14:59:37 167

原创 leetcode-0003-Longest Substring Without Repeating Characters

题目Given a string, find the length of the longest substring without repeating characters.Example 1:Input: "abcabcbb"Output: 3 Explanation: The answer is "abc", with the length of 3. Example 2:I...

2019-05-17 22:00:02 187

原创 leetcode-0002-Add Two Numbers

题目You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and retur...

2019-05-17 16:17:32 102

原创 leetcode-0001-Two Sum(算法:两数加和等于目标值)

Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution, and you may not use the same e...

2019-05-17 11:28:39 203

原创 vim设置总结

1、在~下面新建.vimrc的文件2、显示行号 set nu3、搜索高亮set hlsearch  set nuset hlsearch

2018-11-23 20:17:13 117

原创 hackerrank-shell-Getting started with conditionals

list of test operatorsHere’s a quick list of test operators. It’s by no means comprehensive, but its likely to be all you’ll need to remember (if you need anything else, you can always check the bas...

2018-05-07 20:57:34 129

原创 hackerrank-shell-A Personalized Echo

A Personalized EchoWrite a Bash script which accepts as input and displays a greeting: “Welcome (name)”Input FormatOne line, containing a .Output FormatOne line: “Welcome (name)” (quotation...

2018-05-07 19:15:49 195

原创 hackerrank-shell-Looping and Skipping

Your task is to use for loops to display only odd natural numbers from 1 to 99.Input FormatThere is no input.Constraints-Output Format135.....99 answer:#!/bin/bashfor((i=1;i&lt;100;i++))do   ...

2018-05-07 16:21:56 162

原创 LOG 引起的StackOverflowError

LOG 引起的StackOverflowErrorSLF4J: Class path contains multiple SLF4J bindings.SLF4J: Found binding in [jar:file:/logging/hcreport-datainf-i18n/lib/slf4j-log4j12-1.7.8.jar!/org/slf4j/impl/Sta

2017-07-05 11:16:46 6088 4

空空如也

空空如也

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

TA关注的人

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