题意:求一个字符串的最长不含重复字符的子字符串长度; 示例: input:pwwkw output:2 intput:dvdf output:3 分析:还是那句话,每分析一个问题的时候都要问自己,自己的大脑是如何找出正确答案的,将自己的分析转化为代码此题便解 题目要求不含重复字符,且是子字符串; 1 ...
分类:
其他好文 时间:
2018-11-28 00:29:14
阅读次数:
190
一、机器学习的定义 机器学习是一个很广的研究领域,其实到现在也并没有一个很正式官方的定义,但历史上确有流传下两个比较有名的版本 "Field of study that gives computers the ability to learn without being explicity prog ...
分类:
其他好文 时间:
2018-11-24 00:50:16
阅读次数:
220
一般是报error问题就是我们的mysql没有权限,这里主要是指三点:一个是mysql的安装主目录要设为mysql用户和用户组。一个是logs目录设置为mysql用户以及用户组。还有一个是data目录也是设置为用户以及用户组。(如果有其他的是mysql需要的目录或文件也要这样子设置用户和用户组) 只 ...
分类:
数据库 时间:
2018-11-21 18:32:08
阅读次数:
216
Design a HashMap without using any built-in hash table libraries. To be specific, your design should include these functions: put(key, value) : Insert ...
分类:
编程语言 时间:
2018-11-21 12:17:06
阅读次数:
166
Given a linked list, determine if it has a cycle in it. Given a linked list, determine if it has a cycle in it. Follow up:Can you solve it without usi ...
分类:
其他好文 时间:
2018-11-20 13:21:06
阅读次数:
195
需要三台虚拟机(生产环境是3个物理机),分配静态IP。cluster中共6个节点。3主3从。本文中每个虚拟机上的redis端口:6379 6380。 需要注意的两点: 3个主节点分别位于3台虚拟机上,已保证某个虚拟机挂掉,集群仍然可以正常工作。 同一对主从节点(存储的是相同的数据),也不能分配到一台 ...
分类:
其他好文 时间:
2018-11-20 00:09:01
阅读次数:
178
https://leetcode.com/problems/divide-two-integers/ Given two integers dividend and divisor, divide two integers without using multiplication, division ...
分类:
其他好文 时间:
2018-11-20 00:08:49
阅读次数:
140
python3 Django 环境下,如果你遇到namespace没有注册以及在根目录下urls.py中的include方法的第二个参数namespace添加之后就出错的问题。 出错问题: 'Specifying a namespace in include() without providing ...
分类:
移动开发 时间:
2018-11-19 22:40:00
阅读次数:
674
Design a HashMap without using any built-in hash table libraries. To be specific, your design should include these functions: put(key, value) : Insert ...
分类:
其他好文 时间:
2018-11-17 10:31:39
阅读次数:
293