- 博客(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
10912
转载 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
4249
原创 maven项目单元测试时ClassNotFoundException问题
项目出现ClassNotFoundException的原因有几种: 1. 未引入相关jar包 2. jar包有问题 3. 代码不编译(测试类找不到)
2017-08-01 12:49:22
1245
原创 算法第十八周作业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
410
原创 算法第十七周作业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
323
原创 算法第十六周作业01
DescriptionFind the total area covered by two rectilinear rectangles in a 2D plane. 求解两个矩形的并集面积
2017-06-08 12:52:37
297
原创 算法第十五周作业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
216
原创 算法第十四周作业01
DescriptionGiven an unsorted array of integers, find the length of the longest consecutive elements sequence.
2017-04-21 12:27:21
272
原创 算法第十三周作业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
298
原创 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
33130
5
原创 Kubernetes 1.5部署安装dashboard
Kubernetes1.5 安装配置dashboard,Kubernetes利用web UI发布和管理服务
2017-04-13 20:57:39
5697
1
原创 算法第四周作业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
309
原创 算法第四周作业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
296
原创 算法第五周作业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
297
原创 2017年阿里巴巴内推实习电话面试1
本人广东某985软工专硕,2017年2月27号投的内推简历,今天(3月14号)接到第一个面试电话,当时看到杭州的电话,就知道肯定是阿里的面试了,于是准备好耳机,接听了电话。毫无疑问,我的猜测是对的,他开口问我是不是***,他是阿里巴巴的,方不方便电话面试,当时我说方便(其实我翘课了,就等着他的电话)。考虑到走廊上说话太大声,我把走廊的椅子搬到院楼之间的空旷平台上和他“决一死战”,后来感觉悲剧了,当
2017-03-14 13:47:29
1864
原创 算法第三周作业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
292
原创 最大子字符串,哈希,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
276
原创 算法第三周作业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
254
原创 算法第三周作业02
题目描述开发一个简单错误记录功能小模块,能够记录出错的代码所在的文件名称和行号。 处理:1.记录最多8条错误记录,对相同的错误记录(即文件名称和行号完全匹配)只记录一条,错误计数增加;(文件所在的目录不同,文件名和行号相同也要合并)2.超过16个字符的文件名称,只记录文件的最后有效16个字符;(如果文件名不同,而只是文件名的后16个字符和行号相同,也不要合并)3.输入的文件
2017-03-02 16:19:34
287
原创 算法第二周作业06
Description题目描述老师想知道从某某同学当中,分数最高的是多少,现在请你编程模拟老师的询问。当然,老师有时候需要更新某位同学的成绩. 输入描述:输入包括多组测试数据。每组输入第一行是两个正整数N和M(0 < N <= 30000,0 < M < 5000),分别代表学生的数目和操作的数目。学生ID编号从1编到N。第二行包含N个整数,代表这N个学生的初始成
2017-03-02 13:02:33
298
原创 算法第二周作业05
Description输入一个整数,输出该数二进制表示中1的个数。其中负数用补码表示。Solutions对于负数,通过其反码中0的个数间接求取对于正数,通过左向平移并判断最低位是0是1来计数太简单,直接看代码Codepublic int NumberOf1(int n) { if(n < 0){
2017-03-02 11:32:40
296
原创 算法第二周作业04
Description一只青蛙一次可以跳上1级台阶,也可以跳上2级……它也可以跳上n级。求该青蛙跳上一个n级的台阶总共有多少种跳法。Solutions青蛙要想跳到target级台阶,她可以从第0个台阶直接(一次)跳到target级,或者从第1级台阶直接跳到target级,...或者直接从第target-1级台阶直接跳到target级。因此跳到ta
2017-03-02 11:15:23
320
原创 算法第二周作业03
Description用两个栈来实现一个队列,完成队列的Push和Pop操作。 队列中的元素为int类型。Solutions入队时,直接向其中一个栈(假设stack1)进行入栈操作;出队时,将stack1的除了最里面的数据,全部依次出栈并入栈stack2,然后stack1剩余的一个元素就是出队结果,把它出栈并保存为临时变量,用于返回;然后将sta
2017-03-01 22:27:06
293
原创 算法第二周作业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
326
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人