一、线性表的查找 1、顺序查找: typedef KeyType int;//这个根据具体情况去定义;在这里定义为int; typedef struct{ KeyType key; InfoType otherinfo;//这个根据具体情况去改,这里只是抽象的说成还要添加这些类型。 }ElemTyp ...
分类:
其他好文 时间:
2020-06-27 13:29:49
阅读次数:
62
Pop Sequence:: Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, ..., N and pop randomly. You are supposed to te ...
分类:
其他好文 时间:
2020-06-27 13:25:15
阅读次数:
53
题目 https://www.luogu.com.cn/problem/P4913 代码 #include<iostream> #include<cstdio> struct node { int left; int right; }list[1000001]; int depth = 0; voi ...
分类:
其他好文 时间:
2020-06-27 13:11:54
阅读次数:
75
Oracle Data Guard, 分逻辑Standby和物理Standby。 下面讲的是物理Standby 环境的搭建步骤。 有关Data Guard的一些概念性的理论知识,请参考我的blog, 这里不做过多的说明。 Oracle Data Gurad 理论知识 http://blog.csdn ...
分类:
数据库 时间:
2020-06-27 11:20:42
阅读次数:
277
import requests import re import time import base64 import json import sys import re from urllib3 import disable_warnings from urllib3.exceptions impo ...
分类:
其他好文 时间:
2020-06-27 11:20:08
阅读次数:
122
私有化 xx: 公有变量 _x: 单前置下划线,私有化属性或方法,from somemodule import *禁止导入,类对象和子类可以访问 __xx:双前置下划线,避免与子类中的属性命名冲突,无法在外部直接访问(名字重整所以访问不到) __xx__:双前后下划线,用户名字空间的魔法对象或属性。 ...
分类:
其他好文 时间:
2020-06-26 22:00:38
阅读次数:
49
1.本章的主要内容 2.关于反射的理解 Reflection(反射)是被视为动态语言的关键,反射机制允许程序在执行期借助于Reflection API取得任何类的内部信息,并能直接操作任意对象的内部属性及方法。 框架 = 反射 + 注解 + 设计模式。 3.体会反射机制的“动态性” //体会反射的动 ...
分类:
编程语言 时间:
2020-06-26 21:57:43
阅读次数:
48
#!/usr/bin/env python from struct import * import pandas as pd import numpy as np import os import re import pathlib import threading import time def ...
分类:
其他好文 时间:
2020-06-26 20:41:49
阅读次数:
57
Singleton: Make sure that there can be "only one instance" of a Class The Singleton class only provide a "static method" to get its object for example ...
分类:
其他好文 时间:
2020-06-26 20:37:18
阅读次数:
44
一、什么是递归 所谓递归,简单点来说,就是一个函数直接或间接调用自身的一种方法,它通常把一个大型复杂的问题层层转化为一个与原问题相似的规模较小的问题来求解。 引用知乎大佬的例子: 我们可以把” 递归 “比喻成 “查字典 “,当你查一个词,发现这个词的解释中某个词仍然不懂,于是你开始查这第二个词。 可 ...
分类:
编程语言 时间:
2020-06-26 20:36:48
阅读次数:
47