对shell的某些细节还不是十分熟悉,借鉴了好多别人的东西1. Word Frequency 此题很简单,只要能排序就可以 cat words.txt |tr -s " " "\n" sort | unique -c | sort -r | awk '{print $2" "$1}'2.Val...
分类:
系统相关 时间:
2015-08-16 15:10:39
阅读次数:
164
一、TextView 继承自View类,本质上就是一个文本编辑器,只是Android关闭它的编辑功能。把编辑文字的功能交给了它的子类——EditText。特殊之处:
1.通过设置ellipsize=marquee,可以实现“跑马灯”
android:width=”wrap_content”
android:focusable = “true”
android:singleline = “tr...
分类:
移动开发 时间:
2015-08-16 02:11:16
阅读次数:
221
A Simple Tree Problem
Time Limit: 3 Seconds Memory Limit: 65536 KB
Given a rooted tree, each node has a boolean (0 or 1) labeled on it. Initially, all the labels are 0.
We define this kind...
分类:
其他好文 时间:
2015-08-15 06:46:09
阅读次数:
111
页面获取的字符串数据过长,导致显示的表格排列不整齐,这是就要对表格中过长的字符串进行处理之后显示。
方法一:(别的博客看到的方法)
js方法:
jQuery.fn.limit=function(){
var self = $(".table tr td");
self.each(function(){
var objStri...
分类:
Web程序 时间:
2015-08-14 21:24:10
阅读次数:
327
Problem Description: You, the head of Department of Security, recently received a top-secret information that a group of terrorists is planning to tr....
分类:
其他好文 时间:
2015-08-13 19:42:15
阅读次数:
142
<table><caption>为方便我们的接待,请受邀机构填写如下信息:</caption><tr><th><labelfor="userName">负责人</label></th><td><inputtype="text"id="userName"placeholder="请输入负责人姓名"maxlength="8"><..
分类:
其他好文 时间:
2015-08-12 14:57:45
阅读次数:
127
html代码片段: <tr>
????<td?class="td1">图片分类</td>
????<td?class="td2">
????????<select?class="c333?sel"?name="type"?id="type_p"><!--js通过此select选择下面的一个li显示,另一...
分类:
其他好文 时间:
2015-08-12 10:24:58
阅读次数:
120
输入两颗二叉树A,B,判断B是不是A的子结构。图中,树B就是树A的一个子结构思路:首先,从树A的根节点开始,判断树B是否是从该根节点开始与树A重合。如果不是,继续判断左右子树。重合判定:当前的A子树的根节点与B的根节点的值相同,再递归判断A的左右子树与B的左右子树是否相同。注意B为NULL判定为Tr...
分类:
其他好文 时间:
2015-08-11 21:13:57
阅读次数:
148
1、对于js,没有系统的学习。有要经常的用到,每次都是百度查找,为了以后能查询。 (1)、 $(function () { $('.restbtn').on("click", function () { $(this).parents("tr").find('input[id=...
分类:
Web程序 时间:
2015-08-11 18:24:00
阅读次数:
117
1 2 3 4 5 6 7 8 Insert title here 9 10 11 12 13 14 15 61 62 65 66 67 68 71 72 73 74...
分类:
其他好文 时间:
2015-08-11 13:51:34
阅读次数:
120