- 博客(13)
- 资源 (2)
- 收藏
- 关注
原创 Oracle 归档日志学习笔记
[Oracle 归档日志学习笔记]Oracle 数据库在数据出错时可以使用 重做日志 (Redo Log)进行恢复,重做日志分为两部分:在线重做日志文件 (Online Redo Log Files)归档日志文件 (Archive Redo Log Files)这里主要说一下归档日志 (Archive Log),在线重做日志大小毕竟是有限的,当都写满了的时候,就面临着2个选择,第一个就是把以前在线重做日志从头擦除开始继续写,第二种就是把以前的在线重做日志先进行备份,然后对被备份的日志擦除开始写新
2020-08-24 10:20:11
555
原创 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
172
原创 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
150
原创 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
160
原创 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
107
原创 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
117
原创 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
112
原创 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
144
原创 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
114
原创 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
133
原创 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
368
原创 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
1784
原创 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
2293
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人