码迷,mamicode.com
首页 >  
搜索关键字:list    ( 54897个结果
LeetCode 179. Largest Number
Problem: https://leetcode.com/problems/largest-number/ Given a list of non negative integers, arrange them such that they form the largest number. For ...
分类:其他好文   时间:2016-07-16 14:11:40    阅读次数:189
Java千百问_09基础类库(002)_util包有什么功能
点击进入_更多_Java千百问1、util包有什么功能java.util包提供了java中的基础工具类。包括基本的集合框架等基础类以及通用的工具类。主要类如下图: ?大体将java.util包分为两类:集合、工具,下面分别介绍其中比较常用的类:集合 位集合 BitSet,只存储0、1的集合。 数据集合 Collection,常用集合容器,包括列表List、数据集Set、队列Queue。 Ma...
分类:编程语言   时间:2016-07-16 11:44:51    阅读次数:182
[leetcode] 328. Odd Even Linked List
Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and not the ...
分类:其他好文   时间:2016-07-16 11:23:03    阅读次数:127
Java分页需求
近期在实现项目接口时,经常需要分页功能。有时返回“String”,有时是“Object”格式的分页List。针对这种情况,本人用java实现对List分页。 第一版 start t6t7t8t9t10 finish 考虑到超出元素个数时异常的情况,做多一步判断。 第二版 start User [id ...
分类:编程语言   时间:2016-07-16 06:52:57    阅读次数:332
Add Two Numbers
You have two numbers represented by a linked list, where each node contains a single digit. The digits are stored in reverse order, such that the 1's ...
分类:其他好文   时间:2016-07-16 06:49:14    阅读次数:105
STL"源码"剖析-重点知识总结
STL是C++重要的组件之一,大学时看过《STL源码剖析》这本书,这几天复习了一下,总结出以下LZ认为比较重要的知识点,内容有点略多 :) 1、STL概述 STL提供六大组件,彼此可以组合套用: 容器(Containers):各种数据结构,如:vector、list、deque、set、map。用来 ...
分类:其他好文   时间:2016-07-16 00:09:49    阅读次数:168
读取短信数据库放到ListView中显示
在AndroidManifest.xml文件中配置权限 在MainActivity中声明一个listView布局和一个List集合用于存放数据 得到ListView布局,和创建List集合对象 获得ContentResolver的对象 创建BaseAdapter解析器 创建一个内部类,继承BaseA ...
分类:数据库   时间:2016-07-15 23:38:44    阅读次数:164
用python写了一个智力题的答案
functools itertools m=a=[,,,,,,,,] list=(itertools.permutations(a,)) n(,functools.reduce(x,y:x*y,(,))): list2=(list[n]) b=(list2[])*+(list2[])*+(list2[]) c=(list2[])*+(list2[]) d=(list2[])*+(list2[]) e=(list2[])*+(list2[]) (b*c==d*e): m=m+(m,b,c,d,e)运行结..
分类:编程语言   时间:2016-07-15 22:03:25    阅读次数:183
LinkedList源码解析
LinkedList特点 1.内部通过双向链表存储数据 2.插入、删除不需要移动元素,只需要修改指针 所在包 package java.util; 继承AbstractSequentialList抽象类 实现List、Deque、Cloneable、java.io.Serializable public class LinkedListE> extends Abstrac...
分类:其他好文   时间:2016-07-15 22:01:05    阅读次数:174
AbstractList抽象类源码解析
所在包package java.util;继续AbstractCollection抽象类 实现List接口public abstract class AbstractList extends AbstractCollection implements List{ // 内部代码下面讲解 }空构造器protected AbstractList() { }添加元素,在尾部添加...
分类:其他好文   时间:2016-07-15 21:13:51    阅读次数:119
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!