码迷,mamicode.com
首页 >  
搜索关键字:list    ( 54897个结果
leetcode Remove Nth Node From End of List
题目说:Try to do this in one pass 只用一遍遍历的话,p1先走n节点,p2再走,等到p1到达链表尾的时候p2正好在倒数第n+1个上面鸟 /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode...
分类:其他好文   时间:2014-05-23 01:52:29    阅读次数:331
001. 3和5的倍数
Problem 1: Multiples of 3 and 5 If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multip...
分类:其他好文   时间:2014-05-23 01:43:01    阅读次数:253
2E08-view-lists-Array(overlay)
介绍一个list滑动时通过一个text提示Array首字母位置的应用 /* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file exce...
分类:其他好文   时间:2014-05-23 00:58:42    阅读次数:326
2E02-View-Lists-multiple -choice-list
介绍一个多选list /* * Copyright (C) 2008 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with th...
分类:其他好文   时间:2014-05-23 00:52:57    阅读次数:455
2E04-view-lists-slow-efficient-adapter
介绍自定一个的Adapter和list的监听 注意 1....
分类:其他好文   时间:2014-05-23 00:51:45    阅读次数:355
2E06-view-lists-separators
介绍通过方法 @Override public boolean areAllItemsEnabled() { return false; } @Override public boolean isEnabled(int position) { return !mStrings[position].startsWith("-"); } 设置list的可以选和不可选注意有...
分类:其他好文   时间:2014-05-22 23:08:09    阅读次数:388
要点Java19 java.util.Arrays
Arrays 数组帮助类 示例程序(JUnit演示) 数组转化为List @Test public void testUserArraysChangeArraytoList() { // 类Arrays // public static List asList(T... a) // Returns a fixed-s...
分类:编程语言   时间:2014-05-22 18:37:40    阅读次数:354
UnderScore.jsAPI记录
Collection Functions (Arrays or Objects)each _.each(list, iterator, [context])遍历list中的所有元素,如果传递了context参数,则把iterator绑定到context对象上。iterator的参数是(valu...
分类:Windows程序   时间:2014-05-22 14:32:08    阅读次数:649
建议10:必须知道如何实现类比较器 接口实现对象排序
建议10:必须知道如何实现类比较器所谓的比较器就只是一个接口,也只需要实现一个方法(public int CompareTo(object obj)).实现了比较器有什么用呢?除了顾名思义的可以比较两个实例的大小.还可以用来排序(比如是List集合,就直接调用.Sort()方法就可以 了.方便至极....
分类:其他好文   时间:2014-05-22 14:29:37    阅读次数:186
java开始到熟悉105-107
1,HashMap基本用法 1 package list; 2 3 import java.util.HashMap; 4 import java.util.Map; 5 6 /** 7 * 测试map的基本用法 8 * @author acer 9 *10 */11 public cl...
分类:编程语言   时间:2014-05-22 14:27:29    阅读次数:459
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!