自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 MySQl只能本地登录,无法远程登录

环境:UbuntuMysql 5.7.20判断Mysql的端口状态netstat -apn |grep 3306 如果输出结果包括tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN -时,说明监听的host为127.0.0.1,只能本地访问,需要设置监听host:

2018-01-19 23:07:38 10714

转载 ubuntu16.04设置命令行启动

1. 修改配置文件sudo vim /etc/default/grub GRUB_CMDLINE_LINUX="" 改为GRUB_CMDLINE_LINUX="text" 去掉注释#GRUB_TERMINAL=console,即 GRUB_TERMINAL=console2. 系统生效sudo update-grub sudo systemctl set-default mu

2018-01-19 14:18:19 4185 1

原创 maven项目单元测试时ClassNotFoundException问题

项目出现ClassNotFoundException的原因有几种: 1. 未引入相关jar包 2. jar包有问题 3. 代码不编译(测试类找不到)

2017-08-01 12:49:22 1096

原创 算法第十八周作业01

DescriptionGiven an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of all the elements of nums except nums[i].Solve it without division and in

2017-06-28 14:10:18 371

原创 算法期末作业01

Desription8.3: STINGY SAT is the following problem

2017-06-18 16:48:21 427

原创 算法第十七周作业01

DescriptionGiven a binary search tree, write a function kthSmallest to find the kth smallest element in it.Solution查找二叉树的top K问题

2017-06-08 13:27:15 274

原创 算法第十六周作业01

DescriptionFind the total area covered by two rectilinear rectangles in a 2D plane. 求解两个矩形的并集面积

2017-06-08 12:52:37 263

原创 算法第十五周作业01

DescriptionGiven an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it should return false if every

2017-06-08 09:11:50 186

原创 windows下mysql压缩zip版本安装

windows下mysql压缩zip版本安装

2017-05-12 22:13:59 512

原创 算法第十四周作业01

DescriptionGiven an unsorted array of integers, find the length of the longest consecutive elements sequence.

2017-04-21 12:27:21 239

原创 算法第十三周作业02

DescriptionGiven a string s, partition s such that every substring of the partition is a palindrome.Return the minimum cuts needed for a palindrome partitioning of s.

2017-04-21 11:14:06 263

原创 算法第十三周作业01

leetcode小孩子分糖果

2017-04-20 23:25:32 242

原创 算法第十二周作业01

分词

2017-04-20 22:11:19 267

原创 算法第十一周作业01

二叉树的后序遍历,采用List封装

2017-04-20 16:58:42 209

原创 算法第十周作业01

采用HashMap和LinkedList实现LRU Cache缓存

2017-04-20 16:41:17 269

原创 Kubernetes中的nodePort,targetPort,port的区别和意义

1. nodePort 外部机器可访问的端口。 比如一个Web应用需要被其他用户访问,那么需要配置type=NodePort,而且配置nodePort=30001,那么其他机器就可以通过浏览器访问scheme://node:30001访问到该服务,例如http://node:30001。  例如MySQL数据库可能不需要被外界访问,只需被内部服务访问,那么不必设置NodePort2. targe

2017-04-13 21:22:40 32551 5

原创 Kubernetes 1.5部署安装dashboard

Kubernetes1.5 安装配置dashboard,Kubernetes利用web UI发布和管理服务

2017-04-13 20:57:39 5614 1

原创 算法第九周作业01

Edit Distance

2017-04-09 11:07:07 267

原创 2017年网易游戏实习生面经

2017年网易游戏实习生面试经验

2017-04-08 20:37:54 4372

原创 2017年华为实习生面经

华为2017年实习生面试经验

2017-04-08 16:53:23 5820 4

原创 2017年欢聚时代实习生招聘面经

欢聚时代2017年实习生招聘面试经验

2017-04-08 16:33:13 2944

原创 算法第八周作业01

算法作业文本调整

2017-04-06 23:31:12 233

原创 算法第七周作业01

算法作业判断字符串是否为合法数值

2017-04-06 21:42:40 231

原创 算法第六周作业01

算法作业

2017-04-06 20:23:03 214

原创 Kubernetes安装配置与服务部署

kubernetes安装和配置;kubernetes发布服务

2017-03-29 12:28:41 26802 6

原创 算法第四周作业02

DescriptionGiven an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would

2017-03-21 13:29:59 281

原创 算法第四周作业01

DescriptionGiven a string, find the length of the longest substring without repeating characters.Examples:Given "abcabcbb", the answer is "abc", which the length is 3.Given "bbbbb",

2017-03-21 13:29:39 249

原创 算法第五周作业01

DescriptionDivide two integers without using multiplication, division and mod operator.If it is overflow, return MAX_INT.Solution 假定计算10 / 3,其中left = 10, right = 3,使用1. 首先让10

2017-03-21 13:29:01 262

原创 2017年华为实习编程题

2017年华为实习在线笔试编程题

2017-03-17 20:08:15 6478 2

原创 2017年阿里巴巴内推实习电话面试2

2017年阿里巴巴实习电话面试二面

2017-03-16 15:19:03 1609

原创 2017年阿里巴巴内推实习电话面试1

本人广东某985软工专硕,2017年2月27号投的内推简历,今天(3月14号)接到第一个面试电话,当时看到杭州的电话,就知道肯定是阿里的面试了,于是准备好耳机,接听了电话。毫无疑问,我的猜测是对的,他开口问我是不是***,他是阿里巴巴的,方不方便电话面试,当时我说方便(其实我翘课了,就等着他的电话)。考虑到走廊上说话太大声,我把走廊的椅子搬到院楼之间的空旷平台上和他“决一死战”,后来感觉悲剧了,当

2017-03-14 13:47:29 1816

原创 算法第三周作业03

DescriptionGiven a linked list, reverse the nodes of a linked list k at a time and return its modified list.k is a positive integer and is less than or equal to the length of the linked list.

2017-03-10 17:09:59 246

原创 最大子字符串,哈希,O(n)

DescriptionGiven a string, find the length of the longest substring without repeating characters.Examples:Given "abcabcbb", the answer is "abc", which the length is 3.Given "bbbbb",

2017-03-09 20:52:19 237

原创 算法第三周作业01

题目描述扑克牌游戏大家应该都比较熟悉了,一副牌由54张组成,含3~A,2各4张,小王1张,大王1张。牌面从小到大用如下字符和字符串表示(其中,小写joker表示小王,大写JOKER表示大王):) 3 4 5 6 7 8 9 10 J Q K A 2 joker JOKER 输入两手牌,两手牌之间用“-”连接,每手牌的每张牌以空格分隔,“-”两边没有空格,如:4 4 4 4-joke

2017-03-02 17:07:42 212

原创 算法第三周作业02

题目描述开发一个简单错误记录功能小模块,能够记录出错的代码所在的文件名称和行号。 处理:1.记录最多8条错误记录,对相同的错误记录(即文件名称和行号完全匹配)只记录一条,错误计数增加;(文件所在的目录不同,文件名和行号相同也要合并)2.超过16个字符的文件名称,只记录文件的最后有效16个字符;(如果文件名不同,而只是文件名的后16个字符和行号相同,也不要合并)3.输入的文件

2017-03-02 16:19:34 241

原创 算法第二周作业06

Description题目描述老师想知道从某某同学当中,分数最高的是多少,现在请你编程模拟老师的询问。当然,老师有时候需要更新某位同学的成绩. 输入描述:输入包括多组测试数据。每组输入第一行是两个正整数N和M(0 < N <= 30000,0 < M < 5000),分别代表学生的数目和操作的数目。学生ID编号从1编到N。第二行包含N个整数,代表这N个学生的初始成

2017-03-02 13:02:33 264

原创 算法第二周作业05

Description输入一个整数,输出该数二进制表示中1的个数。其中负数用补码表示。Solutions对于负数,通过其反码中0的个数间接求取对于正数,通过左向平移并判断最低位是0是1来计数太简单,直接看代码Codepublic int NumberOf1(int n) { if(n < 0){

2017-03-02 11:32:40 257

原创 算法第二周作业04

Description一只青蛙一次可以跳上1级台阶,也可以跳上2级……它也可以跳上n级。求该青蛙跳上一个n级的台阶总共有多少种跳法。Solutions青蛙要想跳到target级台阶,她可以从第0个台阶直接(一次)跳到target级,或者从第1级台阶直接跳到target级,...或者直接从第target-1级台阶直接跳到target级。因此跳到ta

2017-03-02 11:15:23 275

原创 算法第二周作业03

Description用两个栈来实现一个队列,完成队列的Push和Pop操作。 队列中的元素为int类型。Solutions入队时,直接向其中一个栈(假设stack1)进行入栈操作;出队时,将stack1的除了最里面的数据,全部依次出栈并入栈stack2,然后stack1剩余的一个元素就是出队结果,把它出栈并保存为临时变量,用于返回;然后将sta

2017-03-01 22:27:06 232

原创 算法第二周作业02

Description输入某二叉树的前序遍历和中序遍历的结果,请重建出该二叉树。假设输入的前序遍历和中序遍历的结果中都不含重复的数字。例如输入前序遍历序列{1,2,4,7,3,5,6,8}和中序遍历序列{4,7,2,1,5,3,8,6},则重建二叉树并返回。Solutions某颗树的先序遍历:ABCDEFG,中序遍历:CBDAFGE。首先由先序遍历的第一个节点A可以

2017-03-01 21:58:11 270

AD7280A 51代码 SPI

AD7280A 51代码 SPI 锂电池管理系统,电池电压、温度检测采集

2014-10-20

空空如也

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

TA关注的人

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