摘要: 类加载得过程分为加载、验证、准备、解析和初始化这五个阶段 1、加载 1)通过一个类的全限定名来获取定义此类的二进制字节流。 2)将这个字节流所代表的静态存储结构转化为方法区的运行时数据结构。 3)在内存中生成一个代表这个类的java.lang.Class对象,作为方法区这个类的各种数据的访问入口。 阅读全文
posted @ 2022-08-08 23:45 鲤鱼程序员 阅读(265) 评论(0) 推荐(0) 编辑
摘要: Merge two sorted linked lists and return it as a sorted list. The list should be made by splicing together the nodes of the first two lists. 合并两个有序链表并 阅读全文
posted @ 2021-01-20 15:34 鲤鱼程序员 阅读(82) 评论(0) 推荐(0) 编辑
摘要: You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes conta 阅读全文
posted @ 2020-11-23 16:11 鲤鱼程序员 阅读(71) 评论(0) 推荐(0) 编辑
摘要: Given a 32-bit signed integer, reverse digits of an integer. Note:Assume we are dealing with an environment that could only store integers within the 阅读全文
posted @ 2020-11-19 14:25 鲤鱼程序员 阅读(64) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each inp 阅读全文
posted @ 2020-11-13 13:53 鲤鱼程序员 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 一、时间复杂度与空间复杂度 二、原理与代码 1、直接插入排序 1)原理:从序列第二个数开始,将一个数插入到前面已经排序好的序列,记录数加一,以此类推。 2)代码: //直接插入 void insertSort(int a[],int n) { int temp; for (int i = 1; i 阅读全文
posted @ 2020-09-16 16:31 鲤鱼程序员 阅读(123) 评论(0) 推荐(0) 编辑