You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contai ...
分类:
其他好文 时间:
2019-04-09 16:39:39
阅读次数:
167
``` class Solution { public: ListNode* mergeKLists(vector& lists) { if (lists.empty()) return NULL; int n = lists.size(); while (n > 1) { int k = (n +... ...
分类:
其他好文 时间:
2019-04-08 19:55:45
阅读次数:
173
lists //JDKList<String> list = new ArrayList<String>();list.add("a");list.add("b");list.add("c");list.add("d");//GuavaList<String> list = Lists.newArr ...
分类:
其他好文 时间:
2019-04-08 13:16:13
阅读次数:
119
1. 原始题目 You are given two non-empty linked lists representing two non-negative integers. The most significant digit comes first and each of their node ...
分类:
其他好文 时间:
2019-04-07 12:50:04
阅读次数:
99
概念:广义表(Lists,又称列表)是一种非线性的数据结构,是线性表的一种推广。即广义表中放松对表元素的原子限制,容许它们具有其自身结构。它被广泛的应用于人工智能等领域的表处理语言LISP语言中。在LISP语言中,广义表是一种最基本的数据结构,就连LISP 语言的程序也表示为一系列的广义表。定义:广 ...
分类:
其他好文 时间:
2019-04-05 12:30:18
阅读次数:
220
1. 原始题目 You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their node ...
分类:
其他好文 时间:
2019-04-04 17:22:26
阅读次数:
126
一、Java同步容器 同步容器是用来解决并发情况下的容器线程安全问题的。给多线程环境准备一个线程安全的容器对象。 线程安全的容器对象: Vector, Hashtable。线程安全容器对象,都是使用synchronized方法实现的。 concurrent包中的同步容器,大多数是使用系统底层技术实现 ...
分类:
编程语言 时间:
2019-04-03 14:01:44
阅读次数:
179
Algorithm Leetcode 2. Add Two Numbers You are given two non empty linked lists representing two non negative integers. The digits are stored in revers ...
分类:
其他好文 时间:
2019-03-31 23:16:42
阅读次数:
176
恢复内容开始 [LeetCode]21 Merge Two Sorted Lists 合并两个有序链表 Description Merge two sorted linked lists and return it as a new list. The new list should be made ...
分类:
其他好文 时间:
2019-03-30 01:34:07
阅读次数:
196
linux安装软件包要解决包依赖问题,不能简单安装包本身。 离线安装基本思想都是先在一台设备上安装下载所有依赖包,然后拷贝所有依赖包到新设备上安装。 Ubuntu下apt离线安装包 执行apt update后包依赖关系保存在/var/lib/apt/lists目录下,下载的包保存在/var/cach ...
分类:
系统相关 时间:
2019-03-29 20:52:23
阅读次数:
537