自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 分数相关算法

结论1:分数是有理数,即有限小数和无限循环小数,不包括无限不循环小数。结论2:如果最简分数的分母的因数只包含2和5,那么它不是无限循环小数(有限小数),否则它是无限循环小数。结论2证明可以参见https://blog.csdn.net/u011446177/article/details/80672336。算法1:求分数的最简分数,即将分子分母同除以最大公约数。算法2:求a,b的最...

2018-12-25 13:29:43 672

原创 RDF导入neo4j数据库

为了方便管理和操作RDF格式的图,考虑将导入neo4j进行操作。这就不得不提到我们jbarrasa大佬(简称JB)了。他的团队开发出一个插件,可以帮助我们将RDF导入neo4j中。github上有它的开源代码,有兴趣的朋友可以上去看看,遇到问题了也可以直接提问,JB大佬很热心帮大家解答的,笔芯。下面进入正题,如果将RDF导入neo4j呢?第一,安装配置neo4j社区版。neo4...

2018-12-06 20:01:27 13235 17

原创 Redis的安装与配置及表结构设计

一、Redis的安装与配置https://www.cnblogs.com/M-LittleBird/p/5902850.html二、Redis服务器和客户端启动cd c:\redisredis-server redis.windows.confredis-cli -h 127.0.0.1  -p 6379三、数据存储1.用何种数据结构存储数据在Redis中,Hash...

2018-08-26 14:53:53 846

原创 “高子里的矮子”和“矮子里的高子”

有100个学生,任意排成一个10×10的长方形队列方阵。先从每行的10个人中,挑选出这一行里最高的一个人,这样10行就挑出了10个“高子”,再从这10个“高子”中选出最矮的那一个(如果这样的人有几个,可任选其中一个),把这个人叫做“高子里的矮子”。然后让他们各自回到自己原来的位置上去。再从每一列的10个人中,找出这一列里最矮的一个人,10列里便有10个“矮子”,然后在10个“矮子”里选出最高的那一...

2018-05-10 08:52:58 1416

原创 使用git上传项目到github

使用github管理自己的代码是十分有必要的,将代码上传到github有以下几步:1.注册github账号注册地址:https://github.com/2.安装git下载地址:https://git-for-windows.github.io/下载后一路直接安装即可3.进入Github首页,点击New repository新建一个项目4.填写项目相关信息Repository name: 仓库名称...

2018-05-09 20:51:21 939

转载 看懂UML类图和时序图

http://design-patterns.readthedocs.io/zh_CN/latest/read_uml.html

2018-04-22 14:51:04 262

原创 LeetCode-371. Sum of Two Integers

Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -.Example:Given a = 1 and b = 2, return 3.Credits:Special thanks to @fujiaozhu for adding this problem and ...

2018-03-06 12:47:47 151

原创 LeetCode-717. 1-bit and 2-bit Characters

We have two special characters. The first character can be represented by one bit 0. The second character can be represented by two bits (10 or 11).Now given a string represented by several bits. Retu...

2018-03-05 20:32:53 154

原创 LeetCode-136. Single Number 389. Find the Difference

136. Single NumberGiven an array of integers, every element appears twice except for one. Find that single one.ConceptIf we take XOR of zero and some bit, it will return that bita ⊕ 0 = aIf we take XO...

2018-03-05 20:29:17 208

原创 LeetCode-762. Prime Number of Set Bits in Binary Representation

Given two integers L and R, find the count of numbers in the range [L, R] (inclusive) having a prime number of set bits in their binary representation.(Recall that the number of set bits an integer ha...

2018-03-01 18:29:14 157

原创 JAVA正则表达式

字符串说明字符说明\将下一字符标记为特殊字符、文本、反向引用或八进制转义符。例如,"n"匹配字符"n"。"\n"匹配换行符。序列"\\\\"匹配"\\","\\("匹配"("。^匹配输入字符串开始的位置。如果设置了 RegExp 对象的 Multiline 属性,^ 还会与"\n"或"\r"之后的位置匹配。$匹配输入字符串结尾的位

2018-02-12 15:18:17 204

原创 LeetCode-520. Detect Capital

520.Detect CapitalGiven a word, you need to judge whether the usage of capitals in it is right or not.We define the usage of capitals in a word to be right when one of the following cases holds:All le...

2018-02-10 01:31:41 235

翻译 约瑟夫问题,从o(n*m)到o(n)乃至o(m)的算法复杂度进阶

约瑟夫问题,从o(n*m)到o(n)乃至o(m)的算法复杂度进阶

2016-08-25 15:00:12 2431

cuda从入门到精通

cuda从入门到精通 精心制作的ppt 希望可以帮助到大家

2017-12-14

空空如也

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

TA关注的人

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