输入两个链表,找出它们的第一个公共节点。 如下面的两个链表: /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), n ...
分类:
其他好文 时间:
2021-03-16 13:39:17
阅读次数:
0
在类成员函数中如何调用pthread_create()呢? #incldue <pthread.h> int pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)(void *), v ...
分类:
编程语言 时间:
2021-03-16 11:47:13
阅读次数:
0
ref #include <stdio.h> #include <stdlib.h> typedef struct node { int data; struct node *lchild, *rchild; }bitree_t; bitree_t *createNode(int data) { b ...
分类:
编程语言 时间:
2021-03-15 11:35:22
阅读次数:
0
#include <stdio.h>#include <stdlib.h>typedef struct node { int number; struct node * next;}person;person * initLink(int n) { int i = 0; person * head ...
分类:
其他好文 时间:
2021-03-15 11:31:33
阅读次数:
0
public class Test { public static void main(String[] arg0){ String s = "asd....dfa...d.fee.c"; System.out.println(new Test().getReverseStr(s)); } publ ...
分类:
其他好文 时间:
2021-03-15 10:53:11
阅读次数:
0
快速排序 原理:递归+分治 从数组中选取一个基准点,将数组中小于这个基准点的元素放到基准点左边,大于这个基准点的元素放到右边 默认每次选取最后一个元素当作基准点,定义变量i,j分别指向数组的左端和右端前一个元素 i 向右移动扫描比基准点大的数, 如果比基准点小或等于则继续移动, j 向左移动扫描比基 ...
分类:
编程语言 时间:
2021-03-12 14:17:58
阅读次数:
0
简介 虽然所有循环结构都可以用while或者do…while表示,但Java提供了另一种语句——for循环,使一些循环结构变得简单。 for循环语句是支持迭代的一种通用结构,是最有效,最灵活的循环结构 for循环执行的次数是在执行前就确定的,语法如下 for(初始化;布尔表达式;更新){ //代码语 ...
分类:
其他好文 时间:
2021-03-12 13:28:20
阅读次数:
0
SYZOJ 搭建 Note 开了一台全新的 Aliyun,Ubuntu 20.04 基本按照官方文档走一遍就 OK 但是中间有几个地方卡住了 尝试用 npm install 失败了,后来换成 yarn 就成功了,原因未知 systemctl 始终 fail,所以我直接开了三个 screen,把三个 ...
分类:
其他好文 时间:
2021-03-11 20:53:40
阅读次数:
0
####在windows10中启动VmWare时,只要一启动虚拟机,电脑就会蓝屏死机(终止代码:SYSTEM_SERVICE_EXCEPTION) 没错就是这个,绿色的死亡按钮 原因: 第一种:windows更新原因,正是因为windows系统更新了造成了系统与软件之间不兼容! 第二种:没有第二种, ...
public class Demo04 { public static void main(String[] args) { //低 >高 //byte、short、char->int->long->float->double int i = 128; //强制转换,(类型)变量名 高-->低 by ...
分类:
编程语言 时间:
2021-03-11 19:31:35
阅读次数:
0