#include <stdio.h>int main(){ void hanoi(int n,char one, char two,char three); int m; scanf("%d",&m); printf("move %d diskes:\n",m); hanoi(m,'A','B',' ...
分类:
编程语言 时间:
2020-12-03 12:14:56
阅读次数:
7
非商业,LeetCode链接附上: https://leetcode-cn.com/problems/uncommon-words-from-two-sentences/ 进入正题。 题目: 给定两个句子 A 和 B 。 (句子是一串由空格分隔的单词。每个单词仅由小写字母组成。) 如果一个单词在其中 ...
分类:
其他好文 时间:
2020-12-02 12:01:10
阅读次数:
3
题目 Petya has equal wooden bars of length n. He wants to make a frame for two equal doors. Each frame has two vertical (left and right) sides of length ...
分类:
其他好文 时间:
2020-11-30 16:00:25
阅读次数:
6
Sumdiv Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 37483 Accepted: 9161 Description Consider two natural numbers A and B. Let S be the ...
分类:
其他好文 时间:
2020-11-27 11:53:21
阅读次数:
25
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes conta ...
分类:
其他好文 时间:
2020-11-26 15:14:07
阅读次数:
5
[20201121]显示时间戳高精度版本.txt--//工作需要,需要写一个高精度显示事件戳的版本。--//以前的版本如下:# cat ts.awk# /bin/bashgawk '{ print strftime("[%Y-%m-%d %H:%M:%S]"), $0 }'--//我看了一下man ...
分类:
其他好文 时间:
2020-11-26 14:51:35
阅读次数:
6
TCP 请求头结构 Source Port(源端口):源端口号 (占用16位),发送端程序端口 Destination Port(目的端口):目的端口号(占用16位),接收端程序端口 Sequence Number(发送数据序号):用来标识从TCP发端向TCP收端发送的数据字节流,它表示在这个报文段 ...
分类:
其他好文 时间:
2020-11-23 11:50:37
阅读次数:
4
NGINX and the "Power of Two Choices" Load-Balancing Algorithm - NGINX https://www.nginx.com/blog/nginx-power-of-two-choices-load-balancing-algorithm/ ...
分类:
其他好文 时间:
2020-11-23 11:48:43
阅读次数:
4
Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays. The overall run time complexity shou ...
分类:
编程语言 时间:
2020-11-21 12:37:58
阅读次数:
15
You are given a perfect binary tree where all leaves are on the same level, and every parent has two children. The binary tree has the following defin ...
分类:
其他好文 时间:
2020-11-20 12:00:39
阅读次数:
9