码迷,mamicode.com
首页 >  
搜索关键字:scala set map list    ( 131561个结果
文件操作1创建文件
1.[root@rusky ]# vi list #如果testfile不存在,则vi会自动创建一个名为testfile的文件,并在Vi打开该文件等待用户输入内容。2.[root@rusky ]# ls -l >listfile #利用重定向,将ls -l 的执行结果输出到新文件listfile.....
分类:其他好文   时间:2014-05-05 23:21:35    阅读次数:381
EasyUI ComboTree数据绑定树形分类显示
承接上篇博文【LINQ获取树形分类的层数】。在上文中,笔者只分享了层数,在这里我把完整的实现贴出来,欢迎批评指正。先附上效果图:首先是Tree公共类publicclassTree {publicintModuleID {get;set; }publicintParentID {get;set; }p...
分类:其他好文   时间:2014-05-05 23:06:02    阅读次数:433
使用xib封装一个自定义view的步骤
? 新建一个继承UIView的自定义view,假设类名叫做(ABCAppView)? 新建一个ABCAppView.xib文件来描述ABCAppView内部的结构? 修改UIView的类型为ABCAppView真实类型? 将内部的子控件跟ABCAppView进行属性连线? ABCAppView提供一...
分类:其他好文   时间:2014-05-05 23:01:07    阅读次数:270
Android下EditText中的字体不统一问题
Android下EditText中的字体不统一问题好久没写,今天心情好略记下解决的某bug在一个登录界面有帐号和密码两个EditText,但是却发现两个EditText的hint的英文字体不同,看着极不协调。但是两个EditText都没有特意设置过hint的字体啊···经实验,把密码栏的androi...
分类:移动开发   时间:2014-05-05 22:55:51    阅读次数:483
Leetcode: Remove Duplicates from Sorted List
遇到的问题:input{1,1,1}, output{1,1}, expected{1}, 原因在于若temp.val==temp.next.val, 则需要temp.next=temp.next.next, 这时候就不要temp=temp.next了注意停止条件不光是temp!=null,还应该有...
分类:其他好文   时间:2014-05-05 22:47:08    阅读次数:454
Reverse Nodes in k-Group
Link:http://oj.leetcode.com/problems/reverse-nodes-in-k-group/Given a linked list, reverse the nodes of a linked listkat a time and return its modifie...
分类:其他好文   时间:2014-05-05 22:46:42    阅读次数:456
Reverse Linked List II
Link:http://oj.leetcode.com/problems/reverse-linked-list-ii/Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1...
分类:其他好文   时间:2014-05-05 22:46:11    阅读次数:411
Swap Nodes in Pairs
Link:http://oj.leetcode.com/problems/swap-nodes-in-pairs/Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2-...
分类:其他好文   时间:2014-05-05 22:45:37    阅读次数:331
【LeetCode OJ】Word Ladder I
Problem Link:http://oj.leetcode.com/problems/word-ladder/Two typical techniques are inspected in this problem:Hash Table. One hash set is the words di...
分类:其他好文   时间:2014-05-05 22:44:44    阅读次数:393
【HDOJ】2544 最短路
Dijkstra。 1 #include 2 #include 3 4 #define INF 0xfffffff 5 6 int map[105][105]; 7 int dp[105]; 8 char visit[105]; 9 10 int main() {11 int n, ...
分类:其他好文   时间:2014-05-05 22:34:42    阅读次数:406
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!