摘要: 华为笔试算法题解 第1题 字符串处理 思路:先过滤掉数字,然后按GBK编码扫描汉字的长度,若为偶则子串长度length cnt/2,若为奇则子串长度length (cnt/2+1)(GBK编码汉字为2字节,数值小于0) 阅读全文
posted @ 2018-04-25 11:14 Neptune15 阅读(444) 评论(0) 推荐(0) 编辑
摘要: Leetcode 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 ea 阅读全文
posted @ 2018-04-23 19:35 Neptune15 阅读(98) 评论(0) 推荐(0) 编辑
摘要: Leetcode Add Two Numbers 问题描述 You are given two non empty linked lists representing two non negative integers. The digits are stored in reverse order 阅读全文
posted @ 2018-04-23 19:31 Neptune15 阅读(92) 评论(0) 推荐(0) 编辑
摘要: JDBC基础 菜鸟教程: http://www.runoob.com/java/java mysql connect.html 环境配置 1. MySQL安装在CentOS 7的服务器上http://www.cnblogs.com/yueshangzuo/p/8652890.html 2. 下载连接 阅读全文
posted @ 2018-04-12 16:30 Neptune15 阅读(140) 评论(0) 推荐(0) 编辑
摘要: Ryu 在Mininet环境下实现Ryu为控制器控制ARP报文的实验中学习了Ryu相关的知识,记录如下 官方文档:http://ryu.readthedocs.io/en/latest/getting_started.html 李呈:https://www.sdnlab.com/1785.html 阅读全文
posted @ 2018-04-09 14:40 Neptune15 阅读(1437) 评论(0) 推荐(0) 编辑
摘要: 区块链学习 比特币:记账由所有运行系统的人(即节点,可以简单理解为一台电脑)共同参与记录,每个节点都保存(同步)一份完整的账本。同时使用简单多数原则,来保证账本的一致性 区块链1.0 记账 区块链在记账是会把账页信息(包含序号、记账时间、交易记录)作为原始信息进行Hash, 得到一个Hash值 在记 阅读全文
posted @ 2018-04-09 14:36 Neptune15 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.cnblogs.com/rollenholt/archive/2012/05/02/2479833.html 文章先由stackoverflow上面的一个问题引起吧,如果使用如下的代码: @makebold @makeitalic def say(): return "H 阅读全文
posted @ 2018-04-08 12:53 Neptune15 阅读(6853) 评论(1) 推荐(0) 编辑
摘要: 转自https://www.jianshu.com/p/7c1e78e91506 一、简述 SearchView是v7包中的一个兼容性控件,它可以单独使用,也可以配合menu+toolbar一起使用。本文将使用第二种方式,对SearchView进行探索。最后将通过代码实战,实现 “仿网易云音乐本地音 阅读全文
posted @ 2018-04-01 10:09 Neptune15 阅读(14419) 评论(0) 推荐(0) 编辑
摘要: !转自https://www.cnblogs.com/bigbrotherer/p/7241845.html 在CentOS中默认安装有MariaDB,这个是MySQL的分支,但为了需要,还是要在系统中安装MySQL,而且安装完成之后可以直接覆盖掉MariaDB。 1 下载并安装MySQL官方的 Y 阅读全文
posted @ 2018-03-26 19:03 Neptune15 阅读(216) 评论(0) 推荐(0) 编辑
摘要: Java中instanceof和isInstance的具体区别 在Think in Java泛型这一章遇到这个问题,一些博客模糊提到了isInstance是instanceof的动态实现,查阅文档参考SOF上的一些回答如下: obj.instanceof(class) 表示对象obj是否是class 阅读全文
posted @ 2018-03-12 15:19 Neptune15 阅读(4821) 评论(0) 推荐(0) 编辑