- 博客(85)
- 资源 (5)
- 收藏
- 关注
原创 MySQL讲一讲
目录前言概述1.mysql逻辑架构1.1总体架构1.2存储引擎类型1.3存储引擎之间的区别2.辅助存储管理(重点)2.1存储器层次2.2存储器层次间传输数据2.3易失和非易失存储器2.4磁盘结构2.5磁盘存取特性2.6 I/O开销的主导地位2.7组织磁盘上的数据-定长记录2.8 组织磁盘上的数据-变长记录2.9 组织磁盘上的数据-不能...
2018-09-27 15:24:40
416
原创 2016年总结
经过前一段时间的疯狂加班,最终项目也没能赶在年前发布,由于公司的传统就是过年之前的几天就不再忙项目,大家好好调整,也就导致了今天我终于有时间写总结了,今天算是农历过年之前的最后一天班。这一年经历了很多,还是有不少话想说的。在写这个总结之前我先看了15年的总结还有当时给16年定的目标,总体上算是完成了百分之八十吧。下面就来慢慢的写1.工作当然最重要是工作了,从去年7月份毕业,实际算下来正
2017-02-07 20:07:21
610
原创 MySQL innoDB索引底层原理详解
本文介绍MySQL的InnoDB索引相对底层原理相关知识,涉及到B+Tree索引和Hash索引,但本文主要介绍B+Tree索引,其中包括聚簇索引和非聚簇索引,InnoDB数据页结构详解,B+Tree索引的使用以及优化,同时还有B+Tree索引的查询流程简介。
2016-09-02 21:25:22
36762
5
原创 2015总结
还有几天就要转正了,忽然发现到从毕业来到这家公司已经有半年了,算上去年11月份来北京实习,工作已经有1年多了。我接下来的总结应该不能说是2015年的总结,而是工作一年的总结。这一年可以用几个词来形容:1.裸辞。实习是家游戏公司,职位是游戏服务器开发,作为实习生,经历的第一个项目组没有给我太多的活,所以项目经验没有一点提升,反倒是每天自己找书看,感觉自己的基础就是在那几个月的看书中得到了巩固
2016-01-09 12:01:27
614
原创 eclipse 离线安装maven插件m2eclipse
网上提供了很多教程,但是都存在一个问题就是所给出链接都是失效的,没办法在线安装那就只能离线安装了。http://yunpan.cn/cmSfasGB8XXnU 访问密码 ca6e按上面的路径下载一个名为:m2eclipse.zip的压缩包 解压之后会有两个文件夹 分别为zest和m2eclipse 他们分别包含features和plugins只需要将其包含的文件分别复制到Eclipse安
2015-09-03 23:21:02
14463
原创 LeetCode 解题报告 3Sum Closest
分析:上一个题的解题思路是遍历一个数,剩下的两个数分别指向开头和结尾,根据两数之和的大小,决定两个数向中间移动取值。对于这个题,我们也是用这种思路来解决,只是要注意的一个地方就是,答案不是一个确定的值,是一个最相近的值,所以我们需要保存一个最小值,如果遇到更小的就更新这个最小值,最后的结果就保证了是一个最小值。还需要注意的一个地方是,数值有可能取正也取负,所以我们需要取绝对值来比较大小。
2015-02-27 11:23:40
523
原创 LeetCoder 解题报告 3Sum
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.Note:Elements in a triplet (a,b,c
2015-02-26 20:40:21
492
原创 LeetCode 解题报告 Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers such that they add up to the target, whe
2015-02-26 16:17:34
582
原创 OSGi进阶环境配置遇到问题,我的解决方案
OSGi实战看完了,感觉作者写的很好,接着看OSGi进阶这篇Opendoc,首先是搭建环境,在OSGi实战中的环境搭建,我按着作者的方法搭建出来有问题,通过网上一系列搜寻找到了解决方案,如果大家在OSGi实战环境搭建也遇到问题,可以查看这篇博客点击打开链接。好了接下来看看我在OSGi进阶中遇到的问题吧按着作者的说明,我引入了下图所示的几个bundle点击运行就发现这样的错误
2015-02-11 15:53:11
8535
原创 LeetCode 解题报告 Dungeon Game
The demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of M x N rooms laid out in a 2D grid. Our valiant knight (K) was initially p
2015-02-04 22:07:27
555
原创 LeetCode 解题报告 LargestNumber
Largest Number Total Accepted: 6514 Total Submissions: 43968My SubmissionsQuestion Solution Given a list of non negative integers, arrange them such that they form the largest nu
2015-01-30 17:00:12
589
原创 设计模式感悟
初识设计模式是14年8月份准备找工作时,那时候从网上看到分享的面经,涉及到设计模式,看到微信平台上推荐的java比看书中有一本head first 设计模式,于是就买来细细品味。这期间真的觉得设计模式是一门很伟大的学科,联想到自己以前做的项目,真的只是渣渣水平,只能是学校里来应付老师,一次做完,完成功能为主,如果把这些项目运行到实际过程中,估计后期维护的时候肯定是一天25个小时想重写项目。
2015-01-20 11:27:38
514
原创 设计模式之工厂模式、建造者模式
准备找工作那会看到了一本神书,《Head First 设计模式》,从此对设计模式有了很深的亲睐,但是因为自己的项目经验少的可怜,所以也基本没有用过这些神一样的方法,时间一长也就都忘干净了。现在工作了,师兄给了一个500M的代码,让我吃透它。这期间真的有很多问题,很迷惑。忽然想起了我之前看的书,于是重新拿出来温习。如果说设计模式是圣经,那么这本书就是小人漫画版的启蒙圣经。入门看真的很好,但因为工
2015-01-14 22:01:18
629
原创 OSGi——运行工具箱的配置(org.eclipse.equinox.http org.eclipse.equinox.servlet.api)问题
前一段时间跟着老师在做有关OSGi的项目。刚从老师口中听到这个技术就两眼冒金星,感觉这就是一个高大上的技术,拿以前自己做的项目和这个一比真的是小巫见大巫。刚开始的时候信心满满,觉得一个月的时间学习加做东西足够了,可真做的时候就发现老师说的是对的,这门技术的学习曲线还是挺陡峭的。由于刚刚找到工作,老师布置完任务后几天就去公司实习了,想着一边实习一边做OSGi,幸亏进了项目组,整个项目在我来之前已
2015-01-12 11:53:07
4892
原创 OSGi与equinox创建高度模块化的java系统 第六章 DS模块 遇到的问题
!SESSION 2014-12-23 11:57:41.015 -----------------------------------------------eclipse.buildId=unknownjava.version=1.6.0_32java.vendor=Sun Microsystems Inc.BootLoader constants: OS=win32, ARCH=x8
2014-12-23 18:27:48
780
原创 LeetCode 解题报告 Candy
There are N children standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the following requirements:Each child must have at least on
2014-11-13 09:27:10
1078
原创 LeetCode 解题报告 Single NumberII
Given an array of integers, every element appears three times except for one. Find that single one.Note:Your algorithm should have a linear runtime complexity. Could you implement it without u
2014-11-11 10:29:37
415
原创 LeetCode 解题报告 Single Number
Given an array of integers, every element appears twice except for one. Find that single one.Note:Your algorithm should have a linear runtime complexity. Could you implement it without using e
2014-11-10 15:34:15
457
原创 LeetCode 解题报告 Copy List With Random Pointer
A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.Return a deep copy of the list.分析:复杂
2014-11-10 11:56:03
396
原创 LeetCode 解题报告 LinkedListCycleII
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.Follow up:Can you solve it without using extra space?分析:题目中
2014-11-09 12:45:36
439
原创 LeetCode 解题报告 Reorder List
Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' values.For example,Given {1,2,3,4}, reorder it t
2014-11-07 13:58:56
414
原创 LeetCode 解题报告 Binary Tree Preorder Traversal
Given a binary tree, return the preorder traversal of its nodes' values.For example:Given binary tree {1,#,2,3}, 1 \ 2 / 3return [1,2,3].分析:同样也是用
2014-11-06 21:38:09
415
原创 LeetCode 解题报告 Binary Tree Postorder Traversal
Given a binary tree, return the postorder traversal of its nodes' values.For example:Given binary tree {1,#,2,3}, 1 \ 2 / 3return [3,2,1].分析:不用
2014-11-06 11:01:12
402
原创 LeetCode 解题报告 LRU Cache
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.get(key) - Get the value (will always be positive) of the key if
2014-11-03 23:41:21
500
原创 LeetCode 解题报告 Sort List
Sort a linked list in O(n log n) time using constant space complexity.分析:对链表进行排序,如果是单链表用归并排序时最快的,并且在对数组进行归并的时候是需要用到O(n)的空间的,但是链表就不需要了,只要有O(1)的空间就够了,因为不需要辅助变量来存储。首先是递归的将链表拆分开,然后将链表进行合并。下面是代码:
2014-11-02 16:30:35
417
原创 LeetCode 解题报告 Max Points on a Line
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.刚拿到这个题的时候一看是计算集合,心里就有些
2014-10-30 21:39:50
498
原创 LeetCode 解题报告 Maximum Product Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given the array [2,3,-2,4],the contiguous subarray [2,3] has the largest
2014-10-28 17:58:42
501
原创 java多线程学习资料网站集合
最近找工作,一直在看多线程,发现了一个http://www.cnblogs.com/skywang12345/p/java_threads_category.html
2014-10-04 11:43:56
847
转载 Java 理论与实践: 用弱引用堵住内存泄漏
弱引用使得表达对象生命周期关系变得容易了虽然用 Java™ 语言编写的程序在理论上是不会出现“内存泄漏”的,但是有时对象在不再作为程序的逻辑状态的一部分之后仍然不被垃圾收集。本月,负责保障应用程序健康的工程师 Brian Goetz 探讨了无意识的对象保留的常见原因,并展示了如何用弱引用堵住泄漏。查看本系列更多内容 | 0 评论:Brian Goet
2014-09-30 18:03:41
465
转载 深入分析ConcurrentHashMap
术语定义术语英文解释哈希算法hash algorithm是一种将任意内容的输入转换成相同长度输出的加密方式,其输出被称为哈希值。哈希表hash table根据设定的哈希函数H(key)和处理冲突方法将一组关键字映象到一个有限的地址区间上,并以关键字在地址区间中的象作为记录在表中的存储位置,这种表称为哈希表或散列,所得存储位
2014-09-25 21:54:43
446
原创 整数的二进制翻转
分析:unsigned int turnIntNum(unsigned int num){ unsigned int ret=0,i=0; for(i=0,ret=0;i>1) { ret = (ret<<1) | (num & 1); } return ret;}
2014-09-20 21:07:23
631
原创 归并排序
只贴代码:#include using namespace std;void Merge(int *a,int start,int mid,int end){ int i=0,j=0,k=0; int len1 = mid - start+1; int len2 = end - mid; int *L = new int[len1]; int
2014-09-20 15:19:18
393
原创 快速排序
只贴代码:#include #include using namespace std;int Srandm(int start,int end){ srand(time(NULL)); return start + rand()%(end - start+1);}int Parttion(int *a,int len,int start,int end){
2014-09-20 13:50:30
347
转载 ssh三大框架的面试笔试题
1.Hibernate工作原理及为什么要用? 原理: 1.读取并解析配置文件 2.读取并解析映射信息,创建SessionFactory 3.打开Sesssion 4.创建事务Transation 5.持久化操作 6.提交事务 7.关闭Session 8.关闭SesstionFactory 为什么要用: 1. 对JDBC访问数据库的代码做了封装,大大简化了数据访问层繁琐的重复
2014-09-05 20:22:05
713
转载 ssh框架内容总结
Struts,Hibernate,Spring经典面试题收藏 以备不时只需。关键字: struts, hibernate, spring 先简单的提一下, 要开发出好的,高质量的j2ee系统, 评价系统的高低水平 ,解耦性 至关重要! 而在开发中主要分成三个层次,表现层, 服务层, 持久层。从这三层次去解藕。 spring的作用就是把服务从表现层中,抽取出來,
2014-09-05 20:17:44
480
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人