码迷,mamicode.com
首页 >  
搜索关键字:heap corruption    ( 3114个结果
Java学习笔记35(异常)
代码在运行中发生的问题就是异常 java中把多种异常封装多个类,当程序出现问题时候,就会创建异常类对象并且抛出相关信息 异常体系: Throwable类是Java中所有错误或异常的父类 Throwable的子类Error类是所有错误的父类 Throwable的另一个子类Exception类是所有异常 ...
分类:编程语言   时间:2018-01-14 18:40:51    阅读次数:150
Ugly number丑数2
[抄题]: [思维问题]: [一句话思路]:Long.valueOf(2)转换为long型再做 [输入量]:空: 正常情况:特大:特小:程序里处理到的特殊情况:异常情况(不合法不合理的输入): [画图]: [一刷]: [二刷]: [三刷]: [四刷]: [五刷]: [总结]: [复杂度]:Time ...
分类:其他好文   时间:2018-01-14 17:47:05    阅读次数:126
c语言中的堆、栈和内存映射
Code Area(代码区):程序代码指令、常量字符串,只可读。 Static Area(静态区):存放全局变量/常量、静态变量/常量。 该区域的大小在程序一加载进内存的时候就已固定,但是静态变量的值是可以改的。 Heap(堆):由程序员控制,使用malloc/free来操作。 Stack(栈):预 ...
分类:编程语言   时间:2018-01-14 15:57:22    阅读次数:234
jvm内存
在牛客网看到有人总结的,感觉写的不错,记录一下。 大多数 JVM 将内存区域划分为 Method Area(Non-Heap)(方法区) ,Heap(堆) , Program Counter Register(程序计数器) , VM Stack(虚拟机栈,也有翻译成JAVA 方法栈的),Native ...
分类:其他好文   时间:2018-01-13 20:58:09    阅读次数:141
[leetcode]Heap-347. Top K Frequent Elements
Given a non-empty array of integers, return the k most frequent elements. For example,Given [1,1,1,2,2,3] and k = 2, return [1,2]. Note: class Solutio ...
分类:其他好文   时间:2018-01-13 20:47:23    阅读次数:97
[leetcode]Brainteaser-292. Nim Game
You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 ston ...
分类:其他好文   时间:2018-01-13 20:41:16    阅读次数:161
堆排序【代码】
思路参考《算法导论》P84 堆排序中用到的最重要的就是堆这种数据结构,也正是因为这种数据结构能把时间复杂度控制在O(n * lgn) heapsort算法主要依赖于两个函数 MAX_HEAPIFY(int *A,int i,int len) 用于维护最大堆,时间复杂度为O(lgn),注意书上描述这个 ...
分类:编程语言   时间:2018-01-13 18:52:57    阅读次数:205
Brainteaser-292. Nim Game
You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 ston ...
分类:其他好文   时间:2018-01-13 11:14:52    阅读次数:157
Heap-451. Sort Characters By Frequency
Given a string, sort it in decreasing order based on the frequency of characters. Example 1: Example 2: Example 3: ...
分类:其他好文   时间:2018-01-13 11:06:48    阅读次数:112
JDK 1.8 源码解析 PriorityQueue
package java.util; public class PriorityQueue extends AbstractQueue implements java.io.Serializable // 序列化版本号 private static final long serialVersionU... ...
分类:其他好文   时间:2018-01-13 00:13:49    阅读次数:198
3114条   上一页 1 ... 93 94 95 96 97 ... 312 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!