12 2014 档案

Java操作Mysql笔记
摘要:第一步,需要下载JDBC驱动, 点我。然后选择合适的版本即可。下载完成之后解压,然后将mysql-connector-java-5.1.6-bin.jar文件放到java的安装目录下面。这里每个人的安装路径不同,需要找到自己的路径。第二步,需要在mysql下新建一个数据库,这个很简单,比如creat... 阅读全文

posted @ 2014-12-29 19:23 Stomach_ache 阅读(205) 评论(0) 推荐(0) 编辑

LRU Cache -- LeetCode
摘要:Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:getandset.get(key)- Get the valu... 阅读全文

posted @ 2014-12-20 14:11 Stomach_ache 阅读(320) 评论(0) 推荐(0) 编辑

TF-IDF了解
摘要:http://en.wikipedia.org/wiki/Tf%E2%80%93idf 阅读全文

posted @ 2014-12-13 14:04 Stomach_ache 阅读(103) 评论(0) 推荐(0) 编辑

Linux 命令之head, tail, tr, sort, uniq, grep
摘要:head [filename]head -n 11 [filename] -> First 11 lines head -c 20 [filename] -> First 20 characters head默认为显示前10行。tail [filename]tail -n 11 [filena... 阅读全文

posted @ 2014-12-13 12:43 Stomach_ache 阅读(418) 评论(0) 推荐(0) 编辑

Linux命令之cut
摘要:今天看了一些关于cut命令的简单使用方法。cut一般不是单独使用,比如我要查看bash的版本信息,可以使用 :bash --version | head -n1 | cur -d ' ' -f 2-4cut 命令有几个选项,-c表示字符(一个汉字也算是一个字符)。比如我有一个文件a.txt,我想现实... 阅读全文

posted @ 2014-12-04 12:15 Stomach_ache 阅读(174) 评论(0) 推荐(0) 编辑

树上某点距离最远的结点
摘要:题目链接题目需要得到树上每个结点出发可到达的最远的结点,顺便求出树的直径。这里顺便总结一下求解的两种方法。第一种思路:三种dfs(bfs) 第一遍dfs(bfs)从任意结点出发,找到距离该结点最远的结点u(直径的端点之一)。 第二遍dfs(bfs)从u出发,求出其他点到u的距离,最长的即为v(直... 阅读全文

posted @ 2014-12-01 20:24 Stomach_ache 阅读(782) 评论(0) 推荐(0) 编辑

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

导航

统计

点击右上角即可分享
微信分享提示