摘要:
链表结构面试题 以下题目通用的链表结构类 package Link; public class LinkNode { public int value; public LinkNode next; public LinkNode rand; public boolean isCopy; public 阅读全文
摘要:
master公式: T(n) = a * T(N/b) + O(N^d); 当: log b A < d 时,程序的时间复杂度为:O(N^d); log b A > d 时,程序的时间复杂度为:O(N^log b A); log b A = d 时,程序的时间复杂度为:O(N^d * log N); 阅读全文
摘要:
异或运算实现数值交换 package dataStructuresAndAlgorithms; public class BitOperation { public static void main(String[] args){ int a = 2; int b = 3; a = a^b; // 阅读全文
摘要:
继承 继承的本质是堆某一批类的抽象,用使用关键字 extend进行实现; java中类只有单继承,没有多继承,即一个类可以有多个字类,但只能有一个父类 super的调用: 对属性操作: //程序入口 public class Application { public static void main 阅读全文