直接遍历链表,使用set做标记位(标记是否已经到达过) /** * Definition for singly-linked list. * type ListNode struct { * Val int * Next *ListNode * } */ type void struct{} fun ...
分类:
其他好文 时间:
2021-04-10 12:49:23
阅读次数:
0
获取 itextsharp 包 files 图片文件路径列表 pdfFileName 输出的 pdf文件 public bool MergeFileToPDF(List<string> files,string pdfFileName) { iTextSharp.text.Document docu ...
继承 概念:继承是面向对象最显著的一个特性。继承是从已有的类中派生出新的类,新的类能吸收已有类的数据属性和行为,并能扩展新的能力。 语法:class 子类 extends 父类 通过代码可以发现,子类(Student)并没有定义任何的操作,而在主类中所使用的全部操作都是由Person类定义的,这证明 ...
分类:
编程语言 时间:
2021-04-09 13:38:03
阅读次数:
0
Markdown学习 标题 三级标题 四级标题 字体 wosicc wosicc wosicc wosicc 引用 woiscc,你 分割线 图片 超链接 点到4399 列表 A C A B C 表格 名字性别生日 张二 男 1999.2.5 代码 public hello ...
分类:
其他好文 时间:
2021-04-09 13:33:57
阅读次数:
0
简单使用AtomicInteger 首先贴出以下的代码,简单的使用AtomicInteger这个类来实现+1的操作。 import java.util.concurrent.atomic.AtomicInteger; public class CASTest { public static void ...
分类:
其他好文 时间:
2021-04-09 13:27:53
阅读次数:
0
二叉树——236. 二叉树的最近公共祖先 题目: 思路: 后续遍历+DFS:具体思路参照了题解中的解析 代码: class Solution { public: TreeNode* lowestCommonAncestor(TreeNode* root, TreeNode* p, TreeNode* ...
分类:
其他好文 时间:
2021-04-09 13:25:04
阅读次数:
0
数据类型--char 一、char 1.1 char占用2个字节 char取值范围:【0~65535】 char采用unicode编码方式 char类型的字面量用单引号括起来 char可以存储一个汉字 1 public class Test{ 2 3 public static void main( ...
分类:
编程语言 时间:
2021-04-09 13:22:22
阅读次数:
0
1. for循环语句 1.1 循环结构 1.2 for循环语句的格式 执行流程图: 1.3 案例 public static void main(String[] args) { int count = 0; for (int i = 100; i < 1000; i++) { int ge = i ...
分类:
编程语言 时间:
2021-04-09 13:18:38
阅读次数:
0
import java.util.Scanner; public class ArrayAdd { public static void main(String[] args) { int arr[] = {1,2,3}; //初始数组 System.out.println(" 初始数组情况 "); ...
分类:
编程语言 时间:
2021-04-09 13:01:24
阅读次数:
0
我的 CSDN 博客:blog.csdn.net/gdutxiaoxu我的掘金:juejin.im/user/220747…github: github.com/gdutxiaoxu/微信公众号:程序员徐公 前言 说到树的四种遍历方式,可能大家第一时间都会想到它的四种遍历方式,并快速说了它的特点。 ...
分类:
编程语言 时间:
2021-04-09 13:01:00
阅读次数:
0