Given a linked list and a valuex, partition it such that all nodes less thanxcome before nodes greater than or equal tox.You should preserve the origi...
分类:
其他好文 时间:
2015-03-12 22:24:40
阅读次数:
145
Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return1->4->3->2->5->NULL.思路...
分类:
其他好文 时间:
2015-03-12 22:12:16
阅读次数:
156
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the original list.For example,Given1->2->3-...
分类:
其他好文 时间:
2015-03-11 22:56:36
阅读次数:
202
Given a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3->NULL.题目关键点...
分类:
其他好文 时间:
2015-03-11 21:24:58
阅读次数:
114
情景描述:
在手机浏览器中展示一些数据,这些数据前面都小图标,要求:小图标和文字水平对齐。
效果图
问题分析:
对于图文横排的问题,有很多的解决办法,但是究其根本还是将图片和文字放在同一行上进行展示。
实现方案:
方案一:
写法上很简单,但是这个的兼容性有很大问题。
.m-icon{display:inline-block; vertical-align:middle; paddi...
分类:
移动开发 时间:
2015-03-11 17:11:18
阅读次数:
150
CSS兼容常用技巧 请尽量用xhtml格式写代码,而且DOCTYPE影响 CSS 处理,作为W3C标准,一定要加DOCTYPE声明。 1.div的垂直居中问题 vertical-align:middle; 将行距增加到和整个DIV一样高 line-height:200px; 然后插入文字,就垂...
分类:
Web程序 时间:
2015-03-11 09:16:22
阅读次数:
144
Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.anagrams 的意思是两个词用相同的字母组成 比如 “dog" "go...
分类:
其他好文 时间:
2015-03-10 22:51:58
阅读次数:
198
论坛头像是动态的,例如:http://xxx.xxx.xxx/avatar.php?uid=xxx&size=big每个用户的头像文件都有big、middle、small三个,并且在不同场景分别调用不同尺寸的头像图片,比如帖子、个人设置、头像编辑、登陆等等场景,无形中增加了nginx与php之间的工作压力,如果能够把这..
分类:
Web程序 时间:
2015-03-10 17:29:15
阅读次数:
188
首页 效果为:middle-mid部分css样式少写了width,自己添加即可。css代码为:.top{ color:red; width:auto; height:10%; border-width:1; border-style:dotted;}.m...
分类:
Web程序 时间:
2015-03-10 00:06:49
阅读次数:
140
DescriptionFreddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another stone. He plans to visi...
分类:
其他好文 时间:
2015-03-07 15:32:03
阅读次数:
166