码迷,mamicode.com
首页 >  
搜索关键字:lists    ( 2473个结果
将list集合按指定长度进行切分,返回新的List<List<??>>集合
Lists.partition public class testList { @Test public void test(){ List<Integer> numList = Lists.newArrayList(1, 2, 3, 4, 5, 6, 7, 8); List<List<Intege ...
分类:其他好文   时间:2020-03-02 20:46:46    阅读次数:107
160. 相交链表
160. 相交链表 [toc] 1、试题介绍 编写一个程序,找到两个单链表相交的起始节点。 试题链接:https://leetcode cn.com/problems/intersection of two linked lists/ 2、java做法 2.1、双重循环 测试结果: 2.2、双指针做 ...
分类:其他好文   时间:2020-03-02 20:41:45    阅读次数:64
LeetCode-21 Merge Two Sorted Lists Solution (with Java)
1. Description: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2019-05-07 3 * Definition for singly-linked list. 4 * public class ListNod ...
分类:编程语言   时间:2020-03-02 15:09:28    阅读次数:72
LeetCode 8. 合并两个有序链表
题目描述 难度:简单 将两个有序链表合并为一个新的有序链表并返回。新链表是通过拼接给定的两个链表的所有节点组成的。 示例: 输入:1->2->4, 1->3->4输出:1->1->2->3->4->4 解题思路 对于两个有序链表l1:1->5->8和l2:2->3->9, 首先将l4=l3; 利用一 ...
分类:其他好文   时间:2020-02-28 21:01:40    阅读次数:85
python 合并k个有序链表
from heapq import heappush, heappop class Solution: def mergeKLists(self, lists): q = [] for i,head in enumerate(lists): if head: heappush(q, (head.va ...
分类:编程语言   时间:2020-02-28 20:56:22    阅读次数:109
uci交叉编译
title: uci交叉编译 date: 2020/2/28 11:11:16 toc: true uci交叉编译 [TOC] ...
分类:其他好文   时间:2020-02-28 12:15:10    阅读次数:119
【转】Redis内部数据结构详解 -- skiplist
本文是《Redis内部数据结构详解》系列的第六篇。在本文中,我们围绕一个Redis的内部数据结构——skiplist展开讨论。 Redis里面使用skiplist是为了实现sorted set这种对外的数据结构。sorted set提供的操作非常丰富,可以满足非常多的应用场景。这也意味着,sorte ...
分类:其他好文   时间:2020-02-27 13:20:09    阅读次数:64
合并两个有序链表
题目 将两个有序链表合并为一个新的有序链表并返回。新链表是通过拼接给定的两个链表的所有节点组成的。 示例: 输入:1 2 4, 1 3 4 输出:1 1 2 3 4 4 来源:力扣(LeetCode) 解答 我的第一个版本,有点糟糕: 我的第二个版本: 大佬的版本: ...
分类:其他好文   时间:2020-02-21 18:20:18    阅读次数:55
blog主题——马路
blog主题,存储一下 css 原生主题:Buildtowin Thanks awa ...
分类:其他好文   时间:2020-02-21 16:14:36    阅读次数:64
Python 京东口罩监控+抢购
代码 https://github.com/hkmayfly/JDG 使用教程 环境 Python 3.7.1 代码修改 jdmain.py mailto_lists:收件人的邮箱 mail_sender:发件人邮箱 mail_pass:邮箱授权码 jd_url_list:商品页面获取的链接 req ...
分类:编程语言   时间:2020-02-19 22:24:49    阅读次数:2607
2473条   上一页 1 ... 14 15 16 17 18 ... 248 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!