摘要:
快排是最基础的排序算法之一,今天来回顾一下。 以上就是快排的整体框架,最重要的就是partition方法,它是划分并找到下次分割排序的位置P常用的方法 第二种partition方法实现: 阅读全文
posted @ 2017-12-22 20:38
alittlecomputer
阅读(10370)
评论(0)
推荐(0)
摘要:
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. ret表示垂直x轴线上的点数,dup表示和改点重合的点数。 阅读全文
posted @ 2017-12-22 16:25
alittlecomputer
阅读(201)
评论(0)
推荐(0)
摘要:
Evaluate the value of an arithmetic expression in Reverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another expres 阅读全文
posted @ 2017-12-22 15:07
alittlecomputer
阅读(141)
评论(0)
推荐(0)
摘要:
Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the nearest le 阅读全文
posted @ 2017-12-22 14:21
alittlecomputer
阅读(119)
评论(0)
推荐(0)
摘要:
将一个浏览器文档窗口分割成多个窗口,每个窗口搜可以显示一个独立的网页文件。 网页里面的每个窗口成为帧frame 代码: 02-02-test.html left.html right.html right1.html top.html 注意frameset标签不能放在body标签内。 freamse 阅读全文
posted @ 2017-12-20 17:20
alittlecomputer
阅读(260)
评论(0)
推荐(0)
摘要:
表格可以固定文本或图像的显示位置 表格标签 <table></table> 属性:bgcolor, border, bordercolor,bordercolorlight,bordercolordark,cellspacing,cellpadding,width,height <tr></tr> 阅读全文
posted @ 2017-12-20 11:07
alittlecomputer
阅读(181)
评论(0)
推荐(0)
摘要:
1.图像超链接 格式<a href=><img src=""></a> 2.图像地图 把一幅图像分成过个区域,每个区域指向不同的URL地址,譬如,将衣服中国地图的图像按照省市划分成若干区域,这些区域被称为热点,单击热点区域,就可以连接到与相应省市有关的页面,这就是图像地图。 客户端图像地图: 怎样产 阅读全文
posted @ 2017-12-19 16:47
alittlecomputer
阅读(371)
评论(0)
推荐(0)
摘要:
<img>标签,例如,<img src="MyPhoto.gif">,还可以设置alt,align,border,width,height等属性 <img>标签的显示过程,对浏览器来说,这个只是一个请求,web服务器会返回给浏览器数据,然后浏览器读取这个图像数据。 一个web服务器是如何借助<img 阅读全文
posted @ 2017-12-19 16:21
alittlecomputer
阅读(119)
评论(0)
推荐(0)
摘要:
URL(Uniform Resource Locator) 统一资源定位 URL的基本组成:协议,主机名,端口号,资源名 例如: http://www.sina.com:80/index.html 相对URL,例如“/a.html”,"./ahtml","../../a.html" URL参数 ht 阅读全文
posted @ 2017-12-19 15:53
alittlecomputer
阅读(165)
评论(0)
推荐(0)
摘要:
超链接 超链接标签:<a href=""></a> 例如 <a href="http://www.baidu.com">百度</a> 超链接可以直接跳到某个静态网页的固定位置 下面这个链接就可以过去访问 #表示自己这个页面 空指向的是该文件所在的目录里面 阅读全文
posted @ 2017-12-19 15:10
alittlecomputer
阅读(143)
评论(0)
推荐(0)
摘要:
格式标签 <p></p>标签是段落标签 <br> 是换行标签 <nobr></nobr>是阻止换行 <blockquote></blockquote>标签是缩进 <center></center>是居中 <marquee></marquee>这个标签已经不再使用! <dl></dl><dt></dt 阅读全文
posted @ 2017-12-19 14:47
alittlecomputer
阅读(191)
评论(0)
推荐(0)
摘要:
HTML文件使用<!--内容-->对内容进行注释 注释标签不能被嵌套使用 HTML文件中的特殊字符: >表示大于号 <表示小于号  表示空格 ©表示版权符号 ©表示版权符号 &表示& &Reg表示圆圈R &qute表示引号 很多工具可以完成这些字符的翻译。 阅读全文
posted @ 2017-12-19 14:11
alittlecomputer
阅读(245)
评论(0)
推荐(0)
摘要:
送青年三句话: 问题丹 兴趣散 信心汤 努力不会白费 阅读全文
posted @ 2017-12-18 21:52
alittlecomputer
阅读(106)
评论(0)
推荐(0)
摘要:
今天学习一下理财。看到知乎上的一个理财技巧。跟着学习学习。 知乎连接:https://www.zhihu.com/question/21781920/answer/61214708 如有权限问题,请联系我。 理财并不仅仅只是储蓄,它还涉及到投资(股票、基金、不动产、P2P、保险等等) 理财不等于储蓄 阅读全文
posted @ 2017-12-18 10:50
alittlecomputer
阅读(368)
评论(0)
推荐(0)
摘要:
<body>标签的属性 Text属性:用于设定整个网页中的文字颜色 link属性:用于设定一般超链接文本的显示颜色。 alink属性:用于设定鼠标移动到超链接上时,超链接文本的显示颜色。 vlink属性:用于设定访问过得超链接文本的显示颜色。 background属性:用于设定背景墙纸所用的图像文件 阅读全文
posted @ 2017-12-17 22:13
alittlecomputer
阅读(159)
评论(0)
推荐(0)