自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

翻译 正则表达式:识别wiki中date、height、Link

date:\{\{birth date\|(\d+)\|(\d+)\|(\d+) hegiht:(\d+)(\.\d+)?(in|inches|cm|\”) public static void detectDates(String str) { String regex = "\\{\\{birth date\\|(\\d+)\\|(\\d+)\\|(\\d+)";

2016-12-25 12:03:53 430

原创 java.lang.UnsupportedOperationException

List<Integer> list = Arrays.asList(new Integer[]{2,1,3});list.remove(0);出错原因:Arrays.asList(new Integer[]{2,1,3})返回时list类型,没有实现接口中remove()方法,而arrayList()实现了,所以修改方法List<Integer> list = new ArrayList

2016-12-21 23:08:39 324

原创 Single Number III

Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements that appear only once. For example: Given nums =

2016-12-06 10:07:21 314

原创 Product of Array Except Self

Given 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 O(n). F

2016-12-06 09:53:43 231

原创 Queue Reconstruction by Height

Suppose you have a random list of people standing in a queue. Each person is described by a pair of integers (h, k), where h is the height of the person and k is the number of people in front of this p

2016-12-05 10:41:09 229

原创 Counting Bits

Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1’s in their binary representation and return them as an array.     Example:     For num

2016-12-04 16:11:02 304

原创 知识图谱

1. 什么是知识图谱     在互联网时代,搜索引擎是人们在线获取信息和知识的重要工具当用户输入一个查询词,搜索引擎会返回它认为与这个关键词最相关的网页。从诞生之日起,搜索引擎就是这样的模式,直到2012年5月,搜索引擎巨头谷歌在它的搜索页面中首次引入“知识图谱”:用户除了得到搜索网页链接外,还将看到与查询词有关的更加智能化的答-案。如下图所示,当用户输入“Marie Curie”(玛丽·

2016-12-03 21:04:40 3577

空空如也

空空如也

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

TA关注的人

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