Merge Two Sorted Lists (E) 题目 Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of ...
分类:
其他好文 时间:
2020-06-21 09:38:24
阅读次数:
51
容器总结(不是详解) - List ArrayList LinkedList Vector Stack CopyOnWriteArrayList - Set HashSet TreeSet LinkedHashSet ConcurrentSkipListSet - Map HashMap Linke ...
分类:
其他好文 时间:
2020-06-20 18:57:50
阅读次数:
52
Java集合类简介 java集合大致可以分为List、Set、Map、Queue四种体系,其中Set代表无序、不可重复的集合;List代表有序的、可重复的集合;Map代表具有映射关系的集合;Queue是一种队列集合。 Java集合和数组的区别 1.数组初始化的时候就指定了数组的长度,意味着只能保存定 ...
分类:
编程语言 时间:
2020-06-20 17:05:25
阅读次数:
60
Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For example, given L being 1→2→3→4→5→6, ...
分类:
其他好文 时间:
2020-06-17 23:12:36
阅读次数:
57
题目描述 leetcode - 206:https://leetcode-cn.com/problems/reverse-linked-list/ 解题关键 链表 递归 代码 /** * Definition for singly-linked list. * struct ListNode { * ...
分类:
其他好文 时间:
2020-06-16 20:33:51
阅读次数:
57
[root@zf-test-web01-4 ~]# file /bin/ls #"/bin/ls" is a binary file /bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (u ...
分类:
系统相关 时间:
2020-06-16 14:52:43
阅读次数:
54
直接法 思路: 将结点的值与它之后的结点进行比较来确定它是否为重复结点。如果它是重复的,我们更改当前结点的 next 指针,以便它跳过下一个结点并直接指向下一个结点之后的结点。 代码: # Definition for singly-linked list. # class ListNode: # ...
分类:
编程语言 时间:
2020-06-15 12:01:15
阅读次数:
55
链接:https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list/ 代码 /** * Definition for singly-linked list. * public class ListNode { * int val; ...
分类:
其他好文 时间:
2020-06-13 21:11:17
阅读次数:
66
1074 Reversing Linked List (25分) Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For ex ...
分类:
其他好文 时间:
2020-06-13 00:48:49
阅读次数:
54
1.安装Kafka 环境说明 OS:Ubuntu 16.04 Zookeeper:zookeeper 3.4.5 Kafka:kafka_2.11-0.11.0.0 jdk:jdk8(Kafka启动需要使用到jdk) 1)jdk安装配置 本次已经安装,如未安装自行百度 安装完成,在终端输入java ...
分类:
其他好文 时间:
2020-06-12 18:43:31
阅读次数:
61