自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

凌凌岛的博客

进击的小白!

  • 博客(24)
  • 收藏
  • 关注

原创 Elasticsearch学习笔记——概述

概述ES 5.x版本的改进默认打分机制从 TF-IDF 改为 BM 25支持了keyword类型内部引擎移除了避免同一文档并发更新的竞争锁,带来了15% —— 20%的性能提升支持分片上聚合的缓存新增了Profile APIES 6.x版本的改进增加跨集群复制索引生命周期管理SQL的支持有效存储稀疏字段的新方法,降低了存储成本在索引时进行排序,可加快排序的查询性能ES 7.x版本的改进Lucene升级至 8.0正式废除单个索引下多type的支持7.1开始,Secur

2020-09-05 23:26:30 241 1

原创 Elasticsearch学习笔记——Mapping创建及dynamic_templates

Mappingmapping可以理解为Elasticsearch的表结构,作用是为了定义index的schema。包含有定义字段的数据类型,存储形式等等。创建Mappingmapping创建Elasticsearch在创建索引的时候可以显式定义mapping,也可以不指定mapping,通过写入数据的形式让Elasticsearch自己推断mapping。显示指定mapping创建index# 显示指定mapping创建indexPUT label{ "mappings": {

2020-08-20 22:44:46 2272

原创 Java基础——static关键字

static关键字static关键字可以被用来定义属性、方法和代码块static定义属性static关键字定义的属性,是一个公共属性,可以由实例化对象来使用,也可以由类名称来使用。由类名称使用时,可以没有实例化对象存在。static定义方法static关键字定义的方法,只允许调用static方法或static属性,不可调用非static方法和非static属性。非static方法可以调用static方法或static属性。static定义的方法也允许在没有实例化对象的条件下,由类名称直接调用。s

2020-07-27 22:34:05 197

原创 LeetCode-112:Path Sum(路径总和)

Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.Note: A leaf is a node with no children.Example:Given the below binary tree and sum = 22, 5 /

2020-07-08 00:17:06 170

原创 IDEA中maven移除模组重建后导入依赖失败

记一次IDEA中maven项目中比较坑的设置,在IDEA中如果你之前移除过模组,maven会默认把该模组的pom文件在ignored Files的配置中勾选上,导致如果你再次创建了这个同名的模组,pom文件的依赖引入不进去。如下图:若想重新引入依赖需要将该勾选项移除。...

2020-06-28 20:09:19 652

原创 LeetCode-739:Daily Temperatures(每日温度)

Given a list of daily temperatures T, return a list such that, for each day in the input, tells you how many days you would have to wait until a warmer temperature. If there is no future day for which this is possible, put 0 instead.For example, given the

2020-06-11 12:54:34 194

原创 LeetCode-面试题64:求1+2+…+n

求 1+2+…+n ,要求不能使用乘除法、for、while、if、else、switch、case等关键字及条件判断语句(A?B:C)。示例 1:输入: n = 3输出: 6示例 2:输入: n = 9输出: 45限制:1 <= n <= 10000思路短路加递归实现Java实现class Solution { public int sumNums(int n) { boolean flag = n > 0 && (n

2020-06-02 22:42:23 165

原创 LeetCode-1431:Kids With the Greatest Number of Candies(拥有最多糖果的孩子)

Given the array candies and the integer extraCandies, where candies[i] represents the number of candies that the ith kid has.For each kid check if there is a way to distribute extraCandies among the kids such that he or she can have the greatest number of

2020-06-01 13:55:48 331

原创 LeetCode-101:Symmetric Tree(对称二叉树)

Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree [1,2,2,3,4,4,3] is symmetric: 1 / \ 2 2 / \ / \3 4 4 3But the following [1,2,2,null,3,null,3] is not: 1 / \

2020-05-31 11:35:05 155

原创 LeetCode-84:Largest Rectangle in Histogram(柱状图中最大的矩形)

Given n non-negative integers representing the histogram’s bar height where the width of each bar is 1, find the area of largest rectangle in the histogram.Example:Input: [2,1,5,6,2,3]Output: 10思路此题可理解为,找出每个小矩形所能扩展的最大矩形的面积暴力解法注意到每个小矩形能扩展的最大矩形的高

2020-05-30 15:42:20 236 1

原创 LeetCode-198: House Robber(打家劫舍)

You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adjacent houses have security system connected and it will automatical

2020-05-29 13:53:38 220

原创 LeetCode-394:Decode String(字符串解码)

Given an encoded string, return its decoded string.The encoding rule is: k[encoded_string], where the encoded_string inside the square brackets is being repeated exactly k times. Note that k is guaranteed to be a positive integer.You may assume that the

2020-05-28 23:09:19 224

原创 LeetCode105: Construct Binary Tree from Preorder and Inorder Traversal(从前序与中序遍历序列构造二叉树)

Given preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.For example, givenpreorder = [3,9,20,15,7]inorder = [9,3,15,20,7]Return the following binary tree: 3 / \

2020-05-26 18:17:09 262

原创 LeetCode-287: Find the Duplicate Number(寻找重复数字——弗洛伊德循环寻找算法)

Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must exist. Assume that there is only one duplicate number, find the duplicate one.Example 1:Input: [1,3,4,2,2]Outp

2020-05-26 16:09:55 388

原创 LeetCode-76: Minimum Window Substring(最小覆盖子串)

Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).Example:Input: S = "ADOBECODEBANC", T = "ABC"Output: "BANC"Note:If there is no such window in S that covers all characters in

2020-05-24 13:28:15 228

原创 LeetCode001-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 element twice.Example:Given nums = [2, 7, 11, 15], targ

2020-05-21 15:44:46 210

原创 最大子列和问题

给定K个整数组成的序列{ N​1 , N2 , … , NK },“连续子列”被定义为{ Ni , N​i+1​ , …, Nj },其中1≤i≤j≤K。“最大子列和”则被定义为所有连续子列元素的和中最大者。例如给定序列{ -2, 11, -4, 13, -5, -2 },其连续子列{ 11, -4, 13 }有最大的和20。现要求你编写程序,计算给定整数序列的最大子列和。输入格式:输入第1行...

2020-05-05 23:01:12 444

原创 PAT 1087 All Roads Lead to Rome (30 分)

Indeed there are many different tourist routes from our city to Rome. You are supposed to find your clients the route with the least cost while gaining the most happiness.Input Specification:Each in...

2019-03-31 23:47:31 277

原创 Hadoop学习笔记之HA集群安装部署

文章目录1 运行环境1.1 软件环境1.2 IP与hostname设置2 安装准备2.1 准备虚拟机修改主机名2.2 关闭防火墙2.3 修改hosts列表2.4 配置时钟同步2.5 配置免秘钥登录2.6 安装jdk3 安装其他组件3.1 安装zookeeper3.2 安装hadoop3.2.1 HDFS3.2.2 YARN3.2.3 分发配置文件3.2.4 启动HDFS3.2.5 验证是否成功3....

2019-03-29 18:56:32 183

原创 Hadoop学习笔记之Hive高级操作

文章目录1 连接1.1 数据准备1.2 Join操作1.2.1 内连接JOIN1.2.2 外连接1.2.3 右外连接1.2.4 全外连接1.3 左半连接2 数据类型2.1 原子数据类型2.2 复杂数据类型2.3 复杂数据类型实例2.3.1 数组(ARRAY)2.3.2 映射2.3.3 结构体3 查询4 函数4.1 内置函数4.1.1 查看内置函数4.1.2 显示函数的详细信息4.1.3 显示函数的...

2019-03-22 18:21:24 218

原创 Hadoop学习笔记之Hive基本操作

文章目录1 在Hive中的命令1.1 执行shell命令1.2 执行hdfs命令1.3 DDL操作1.3.1 对数据库的操作1.3.2 对表的操作1.4 DML操作1.4.1 加载数据1.4.2 导出数据2 Hive中的特殊数据结构2.1 动态分区表2.1.1 创建预备表并导入数据2.1.2 设置分区模式2.1.3 创建包含动态分区的分区表并加载数据2.1.4 查看数据2.1.5 查看分区2.2 ...

2019-03-21 17:52:53 639

原创 Hadoop学习笔记之集群安装

操作系统Hadoop版本节点个数Cent OS 7hadoop-2.7.72(master,slave)文章目录1 Linux系统设置1.1 同步时间1.1.1 查看时间1.1.2 同步网络时间1.2 配置主机名1.2.1 配置master1.2.2 配置slave1.3 关闭防火墙1.3.1 查看防火墙1.3.2 关闭防火墙1.4 配置网络1.4.1 master...

2019-03-21 13:21:49 112

原创 Hadoop学习笔记之Hive安装

Hadoop学习笔记之Hive安装1 安装配置MySQL1.1 净化MySQL环境1.1.1 检查是否安装1.1.1 卸载包1.1.2 删除MySQL相应文件1.2 安装MySQL1.2.1 配置MySQL yum源1.2.2 安装MySQL1.2.3 修改root密码2 安装Hive2.1 创建用户和数据库2.1.1 创建hadoop用户2.1.2 创建hive数据库2.2 安装并配置Hive2...

2019-03-21 09:25:49 158

原创 PAT 1145 Hashing - Average Search Time (25 分)

PAT 1145 Hashing - Average Search Time (25 分)The task of this problem is simple: insert a sequence of distinct positive integers into a hash table first. Then try to find another sequence of integer ...

2018-11-27 16:09:43 166

空空如也

空空如也

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

TA关注的人

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