自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 资源 (2)
  • 收藏
  • 关注

原创 Oracle 归档日志学习笔记

[Oracle 归档日志学习笔记]Oracle 数据库在数据出错时可以使用 重做日志 (Redo Log)进行恢复,重做日志分为两部分:在线重做日志文件 (Online Redo Log Files)归档日志文件 (Archive Redo Log Files)这里主要说一下归档日志 (Archive Log),在线重做日志大小毕竟是有限的,当都写满了的时候,就面临着2个选择,第一个就是把以前在线重做日志从头擦除开始继续写,第二种就是把以前的在线重做日志先进行备份,然后对被备份的日志擦除开始写新

2020-08-24 10:20:11 434

原创 6b.LeetCode.23.Merge k Sorted Lists【K个排序链表归并】

K个排序链表归并【23】(hard)#include <iostream>#include <algorithm>#include <vector>using namespace std;struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {}};bool cmp(const ListNode *a, const Lis

2020-08-12 07:59:51 108

原创 6a.LeetCode.21.Merge Two Sorted Lists【2个排序链表归并】

2个排序链表归并【21】(easy)#include <iostream>using namespace std;struct ListNode { int val; ListNode* next; ListNode(int x) : val(x), next(NULL) {}};class Solution { public: ListNode* mergeTwoLists(ListNode* l1, ListNode* l2) {

2020-08-11 10:25:35 105

原创 5.LeetCode.138. Copy List with Random Pointer【复杂链表的复制】

复杂链表的复制【138】(medium)#include <iostream>#include <map>#include <vector>using namespace std;class Node { public: int val; Node *next; Node *random; Node(int _val) { val = _val; next = NULL;

2020-08-11 10:22:34 123

原创 4.LeetCode.86. Partition List【链表划分】

链表划分【86】(medium)#include <iostream>using namespace std;struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {}};class Solution { public: ListNode *partition(ListNode *head, int x) { ListNode

2020-08-11 10:20:10 87

原创 3.LeetCode.142. Linked List Cycle II【链表求环】

链表求环【142】(medium)#include <iostream>#include <set>using namespace std;struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {}};class Solution { public: ListNode *detectCycle(ListNode *head) {

2020-08-11 10:18:02 92

原创 2.LeetCode.160.Intersection of Two Linked Lists【链表求交点】

链表求交点 【160】(easy)#include <iostream>#include <set>using namespace std;struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {}};int get_list_length(ListNode *head) { int len = 0; while (head

2020-08-11 10:14:27 84

原创 1b.LeetCode.92.Reverse Linked List II【链表逆序2】

1-b. 链表逆序2 【92】(medium)#include <iostream>using namespace std;/*Reverse a linked list from position m to n. Do it in one-pass.Note: 1 ≤ m ≤ n ≤ length of list.Example:Input: 1->2->3->4->5->NULL, m = 2, n = 4Output: 1->4-&

2020-08-11 10:08:09 108

原创 1a.LeetCode.206.reverse-linked-list【链表逆序】

1-a. 链表逆序 【206】(easy)#include <stdio.h>struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {}};class Solution { public: ListNode *reverseList(ListNode *head) { // 方法一、双指针迭代 ListNode *

2020-08-11 10:01:52 84

原创 Linux 常用命令

Linux 常用命令tar命令  解包:  tar zxvf FileName.tar -C DirName --exclude=PATTERN # -z --gzip 使用 gzip 方式 # -x --extract 解压 # -v, --verbose 详细列出正在处理的文件 # -f, --file=ARCHIVE 待压缩/解压的文件,文件夹 # DirName 文件/文件夹路径 # --exclude 排除PATTERN(文件/文件夹路

2020-08-11 09:48:19 103

原创 Linux资源监控命令脚本

找出占用CPU内存过高的进程ps -eo user,pid,pcpu,pmem,args --sort=-pcpu |head -n 10ps -eo user,pid,pcpu,pmem,args --sort=-pmem |head -n 10资源利用率.sh#!/bin/bashfunction cpu() { NUM=1 while [ $NUM -le 3 ]; do util=`vmstat |awk '{if(NR==3)print 100-$

2020-08-11 09:31:20 312

原创 Python批处理替换excel中文本

批理替换path路径下的excel文件中的内容# -*- coding: utf-8 -*-import openpyxlimport datetimefrom openpyxl.styles import numbersdef open_xlsx(filename): # 加载Excel数据,处理数据 wb = openpyxl.load_workbook(filename) ws = wb.worksheets[0] # 读取工作表 row

2020-08-11 09:23:01 1701

原创 Javascript两种方法创建单链表

这里写自定义目录标题Javascript两种方法创建单链表节点定义链表定义1.头插法2.尾插法Javascript两种方法创建单链表节点定义 // 节点 function Node(data, next){ this.data = data; this.next = next; }链表定义 // 链表 function NodeList(node){ this.length = 0; this.

2020-05-25 16:44:48 2206

BBm3u8 2.5.zip

BBm3u8下载器可以下载m3u8链接的视频,并支持下载视频自动合并功能,合并后为mp4格式,大家可以提取上述搜索器搜到的m3u8链接试试!

2020-08-11

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除