自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 记一次实习面试

-,-今天去面试。有点迟,约好10点,迟了10分钟左右,估计给人印象不太好,这里提醒自己下次早点到。这次面试的一间公司,叫会掌柜,0,0其实不知道叫拓源新思觉还是叫会掌柜,看了他们会掌柜这个网站,感觉挺新颖的,会务服务的一条龙服务。办公在光大银行大厦707,附近地铁3号线,华师c出口左转过马路就是了。办公环境应该不错,挺年轻挺有活力的一间公司。接待我的HR姐姐挺漂亮这倒是真的,O(∩_∩)O。填完资

2016-04-16 12:39:52 369

原创 排序算法-选择排序和插入排序比较(待续未完)

排序算法非常重要,在计算机中,计算机中排序数据占用的工作量有20%左右,所以研究排序算法有助于我们提高工作效率。排序算法的性能由以下几点决定 1.比较次数 2.交换次数 3.读写数组次数PS:对于不交换元素的算法,我们会计算访问数组次数。一.选择排序1.原理 找到数组最小的那个数,和第一个元素交换位置(如果第一个数是最小,就和自己交换),然后,在剩下元素当中,找到最小的数,和第二个数交换。如

2016-04-14 15:40:03 169

原创 TCP三次握手和漏洞解决

tcp三次握手一:TCP建立过程1.服务器先创建TCB(传输控制块),准备接受客户端的连接请求,然后服务器处于listen状态2.客户端创建TCB,准备发送请求连接报文段,此时首部的同步位syn=1(syn不携带数据,所以要消耗一个序列号),选择一个初始序号seq=x,然后这时候,客户端从closed状态->syn-sent(同步已发送)状态。3.服务器接收

2016-04-11 19:40:58 4660

原创 leetcode 88. Merge Sorted Array

Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.Note: You may assume that nums1 has enough space (size that is greater or equal to m + n) to hold additional

2016-04-11 12:17:18 256

原创 leetcode 240. Search a 2D Matrix II

Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:Integers in each row are sorted in ascending from left to right. Integers in each co

2016-04-11 10:51:01 229

原创 leetcode 237. Delete Node in a Linked List

Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.Supposed the linked list is 1 -> 2 -> 3 -> 4 and you are given the third node with value 3, t

2016-04-11 10:32:04 215

原创 leetcode 118. Pascal's Triangle

Given numRows, generate the first numRows of Pascal’s triangle.For example, given numRows = 5, Return[ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1] ]题目的意思是:给一个数值,返回一个帕斯卡三角思路,我们观察到规

2016-04-10 15:22:19 228

原创 leetcode Search a 2D Matrix

Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:Integers in each row are sorted from left to right. The first integer of each row is

2016-04-09 21:16:46 282

原创 leetcode 80 Remove Duplicates from Sorted Array II

Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra space for another array, you must do this in place with cons

2016-04-09 15:55:41 243

原创 leetcode 27 remove element

由于自己的算法实在太烂,所以不得不去学好,从最低的leetcode开始刷起,从简单干起。leetcode 27 remove elementGiven an array and a value, remove all instances of that value in place and return the new length.Do not allocate extra space for a

2016-04-04 17:52:11 280

原创 数据结构复习-链表

##链表1、单链表什么是单链表?通过一组任意存储单元来存储线性表中的数据元素单链表的结构?一个数据域一个指针域    typedef stuctLNode{    ElemType data;    struct LNode *next;    }LNode,*LinkList结构体如上链表优点缺点?优点:插入和删除元素不需要移动其他

2016-03-27 16:42:17 440

原创 magento安装出现的一些问题(后续补充)

Magento安装出现的问题1.PHP Extensions “0” must be loaded找到app/code/core/Mage/Install/etc/config.xml 大概第70行左右的代码<extensions> <pdo_mysql/><extensions>改为<extensions> <pdo_mysql>1</pdo_mysql><extension

2016-03-12 18:28:18 408

原创 开发中模拟器连接eclipse的一些小问题

使用eclipse开发Android,模拟器使用海马玩。有时候出现连接不到模拟器的时候。解决方法:先关闭海马玩,关闭eclipse 关闭adb  然后先打开adb然后打开eclipse 再打开海马玩。这样就行

2015-12-09 15:14:57 777

原创 固态硬盘的一些知识

固态硬盘  solid state disk 分两种类型  一、基于闪存的类型,采用flash芯片作为存储介质,优点:可移动,数据不受电源控制                    二、基于DRAM的类型,采用DRAM作为存储介质,这种一般用于服务器,优点:性能非常强,而且使用寿命非常长,缺点:需要独立的电源来供给使用,一旦断电,造成数据丢失。我们个人用户来说一般都使用基于闪存类型

2015-12-05 20:39:01 658

空空如也

空空如也

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

TA关注的人

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