题目链接:https://leetcode-cn.com/problems/sum-lists-lcci/ 给定两个用链表表示的整数,每个节点包含一个数位。 这些数位是反向存放的,也就是个位排在链表首部。 编写函数对这两个整数求和,并用链表形式返回结果。 示例: 输入:(7 -> 1 -> 6) + ...
分类:
其他好文 时间:
2020-03-03 10:40:22
阅读次数:
53
2020 03 02 15:39:08.501 ERROR 267704 [ main] c.alibaba.druid.filter.stat.StatFilter : merge sql error, dbType postgresql, druid 1.1.10, sql : create t ...
分类:
数据库 时间:
2020-03-03 10:31:47
阅读次数:
333
题目链接:合并两个排序的链表 题意:输入两个单调递增的链表,输出两个链表合成后的链表,当然我们需要合成后的链表满足单调不减规则。 题解:最开始做一下特殊处理,判空操作。然后判断当前两个链表节点哪个小,就把哪个先放入合并链表中,再做递归。 代码: 1 /* 2 struct ListNode { 3 ...
分类:
编程语言 时间:
2020-03-03 01:08:45
阅读次数:
73
[TOC] "原文地址" Keywords 七、关键词 This section describes new options user have when defining keyword lists. Number of keyword lists has been expanded to eig ...
分类:
其他好文 时间:
2020-03-02 20:50:10
阅读次数:
84
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. 相交链表 [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
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
git status // 检查项目文件是否提交 这里我们看到还有许多文件需要提交,接下来我们使用 git add . // 将所有文件添加到暂存区git commit -m '提交信息' git branch //查看分支git checkout login //选择分支git merge log ...
分类:
其他好文 时间:
2020-03-02 12:40:47
阅读次数:
62
题目描述 输入两个单调递增的链表,输出两个链表合成后的链表,当然我们需要合成后的链表满足单调不减规则。 解法一:使用ArrayList 1 public static ListNode Merge(ListNode list1,ListNode list2) { 2 if(list1==null|| ...
分类:
编程语言 时间:
2020-03-01 22:08:59
阅读次数:
85
通常一个仓库会有两个主分支master和develop: master分支(默认创建的master分支)用来做release,develop分支用来做日常开发。 当软件在develop分支上开发到一定阶段,并通过测试达到稳定阶段的时候,我们会把这个时候develop分支上的软件merge到maste... ...
分类:
其他好文 时间:
2020-03-01 17:10:43
阅读次数:
59