# ```class MedianFinder {public: /** initialize your data structure here. */ MedianFinder() { } priority_queue max_heap; priority_queue, greater> min_... ...
分类:
其他好文 时间:
2020-05-03 20:26:14
阅读次数:
66
本节常见面试题 如何判断对象是否死亡(两种方法)。 简单的介绍一下强引用、软引用、弱引用、虚引用(虚引用与软引用和弱引用的区别、使用软引用能带来的好处)。 如何判断一个常量是废弃常量 如何判断一个类是无用的类 堆中几乎放着所有的对象实例,对堆垃圾回收前的第一步就是要判断那些对象已经死亡(即不能再被任 ...
分类:
其他好文 时间:
2020-05-03 20:09:51
阅读次数:
75
In computer science, a heap is a specialized tree-based data structure that satisfies the heap property: if P is a parent node of C, then the key (the ...
分类:
其他好文 时间:
2020-05-02 14:47:58
阅读次数:
59
python 基础 10 正则表达式 1.模块和实际工作的关系 time 模块与时间没啥关系,有没有 time 模块,时间都存在,time模块只是让我们在脚本里更容易去显示和计算时间 re 模块和正则表达式: 有了re模块就可以在 python 里更方便的操作正则表达式了,没有这个模块,正则表达式也 ...
分类:
编程语言 时间:
2020-05-01 23:56:26
阅读次数:
126
package _Sort.Algorithm /** * https://www.geeksforgeeks.org/heap-sort/ * https://www.cnblogs.com/chengxiao/p/6129630.html * * Heap Sort is an in-place ...
分类:
其他好文 时间:
2020-05-01 14:24:26
阅读次数:
41
什么是内存表 内存表,就是放在内存中的表,所使用内存的大小可通过My.cnf中的max_heap_table_size指定,如max_heap_table_size=1024M 内存表满后,会提示数据满错误。 ERROR 1114 (HY000): The table ‘abc’ is full 内 ...
分类:
其他好文 时间:
2020-04-30 21:26:36
阅读次数:
76
POD资源:requests:需求,最低保障limits:限制,硬限制CPU:一颗逻辑CPU(一个核心)1=1000微核,millicores500m=0.5CPU内存:E、P、T、G、M、KEi、Pi、Ti、Gi、Mi、Ki、Qos:Guranteed:最高优先级,确保、保证同时设置了CPU和内存的requests和limits,cpu.limits=cpu.requestsmemory.lim
pg_dump --host 127.0.0.1 --port 5432 --username "postgres" --role "postgres" --file "D:/test.sql" --table "public.\"表名\"" "数据库名" ...
分类:
数据库 时间:
2020-04-30 15:47:04
阅读次数:
111
内存映射 在一些桌面程序中,整个内存映射是通过虚拟内存来进行管理的,使用一种称为内存管理单元(MMU)的硬件结构来将程序的内存映射到物理RAM。在对于 RAM 紧缺的嵌入式系统中,是缺少 MMU 内存管理单元的。因此在一些嵌入式系统中,比如常用的 STM32 来讲,内存映射被划分为闪存段(也被称为F ...
分类:
其他好文 时间:
2020-04-29 14:19:41
阅读次数:
342
centos7升级mariadb 1、备份原数据库 mysqldump uroot p database database_name name.dump 2、停止服务运行 systemctl stop mariadb && systemctl status mariadb 3、卸载mariadb y ...
分类:
数据库 时间:
2020-04-29 12:54:37
阅读次数:
66