java基础面试题大全带答案 1、作用域public,private,protected,以及不写时的区别 答: 区别如下: 2、Anonymous Inner Class (匿名内部类) 是否可以extends(继承)其它类,是否可以implements(实现)interface(接口) 答: 匿 ...
分类:
编程语言 时间:
2020-05-13 12:23:29
阅读次数:
88
1 void quick_sort(int q[], int l, int r) 2 { 3 if (l >= r) return; 4 5 int i = l - 1, j = r + 1, x = q[l + r >> 1]; 6 while (i < j) 7 { 8 do i ++ ; wh ...
分类:
编程语言 时间:
2020-05-12 00:03:55
阅读次数:
84
1、栈(Stack):存放的都是方法中的局部变量。方法的运行一定要在栈当中。 局部变量:方法的参数,或者是方法{}内部的变量 作用域:一旦超出作用域,立刻从栈内存当中消失。 2、堆(Heap):凡事new出来的东西,都在堆当中。 堆内存里面的东西都有一个地址值:16进制 堆内存里面的数据,都有默认值 ...
分类:
编程语言 时间:
2020-05-08 20:13:48
阅读次数:
107
源码 include include include include struct data { char name[64]; }; struct fp { int ( fp)(); }; void winner() { printf("level passed\n"); } void nowinn ...
分类:
其他好文 时间:
2020-05-06 13:38:27
阅读次数:
61
# ```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
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