- 博客(9)
- 资源 (1)
- 收藏
- 关注
原创 [leetcode]median of two sorted arrays【寻找第k小的数问题】
Median of Two Sorted ArraysThere are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).题意:
2015-09-15 11:16:50 446
原创 [leetcode]Longest Substring Without Repeating Characters【最长不重复字符子串】
Longest Substring Without Repeating Characters My Submissions Question SolutionGiven a string, find the length of the longest substring without repeating characters. For example, the longest substring
2015-09-15 10:47:24 435
转载 【转】ionic安装
安装ionic(其实就一句话,不知是屏蔽还是网速原因,我就一直装不上,一个礼拜左右每天都会装就是装不上,所以有了以下的办法)npm install -g ionic (这句能成功安装就不用看下边的方法了)我的方法 1,配置环境变量node的npm命令 Path : C:\Documents and Settings\Administrator\Application Data\npm 2,补齐
2015-09-11 21:20:36 383
原创 [leetcode] add two numbers(大数据加法链表版)
Add Two NumbersYou are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and retur
2015-09-09 15:27:29 507
原创 [leetcode]two sum (遍历 哈希)
Two SumGiven 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, w
2015-09-09 15:04:09 501
原创 css定位浮动 &html 严格模式混杂模式
css定位static: 元素框正常生成。块级元素生成一个矩形框,作为文档流的一部分,行内元素则会创建一个或多个行框,置于其父元素中。static 没有特别的设定,遵循基本的定位规定,不能通过z-index进行层次分级。relative: 元素框偏移某个距离。元素仍保持其未定位前的形状,它原本所占的空间仍保留。不脱离文档流,参考自身静态位置通过 top,bottom,left,right 定位,
2015-09-07 21:56:13 689
原创 css选择器详解
‣ 下面有关css选择器的说法错误的是?(C) A. .intro 选择 class=”intro” 的所有元素。 B. #firstname 选择 id=”firstname” 的所有元素。 C. div>p 选择所有 < div > 元素和所有 < p> 元素 D. p 选择所有 < p> 元素css类型选择器下面的规则匹配文档树中所有 h1 元素:h1 {font-f
2015-09-07 17:09:27 645
原创 web性能优化
web性能优化又叫页面加载速度的优化或者页面渲染性能的优化。以下列举几种性能优化方式。- 压缩源码和图片JavaScript文件源代码可以采用混淆压缩的方式,CSS文件源代码进行普通压缩,JPG图片可以根据具体质量来压缩为50%到70%,PNG可以使用一些开源压缩软件来压缩,比如24色变成8色、去掉一些PNG格式信息等。- 选择合适的图片格式如果图片颜色数较多就使用JPG格式,如果图片颜色数较少就使
2015-09-07 16:25:10 443
转载 c指针详解
第一章 指针的概念 指针是一个特殊的变量,它里面存储的数值被解释成为内存里的一个地址。 要搞清一个指针需要搞清指针的四方面的内容:指针的类型,指针所指向的 类型,指针的值或者叫指针所指向的内存区,还有指针本身所占据的内存区。让 我们分别说明。 先声明几个指针放着做例子: 例一: (1)int *ptr; (2)char *ptr; (3)int **ptr;
2015-09-06 19:35:38 387
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人