 Hello 算法 1.0.0b4 Java版node.height; } /* 更新节点高度 */ void updateHeight(TreeNode node) { // 节点高度等于最高子树高度 + 1 node.height = Math.max(height(node.left), height(node.right)) + 1; } 节点平衡因子 节点的「平衡因子 Balance Factor」定义为节点左子树的高度减去右子树的高度,同时规定空节点的平衡因 简单实现,无法用于排序对象 void countingSortNaive(int[] nums) { // 1. 统计数组最大元素 m int m = 0; for (int num : nums) { m = Math.max(m, num); } // 2. 统计各数字的出现次数 // counter[num] 代表 num 的出现次数 int[] counter = new int[m + 1]; 完整实现,可排序对象,并且是稳定排序 void countingSort(int[] nums) { // 1. 统计数组最大元素 m int m = 0; for (int num : nums) { m = Math.max(m, num); } // 2. 统计各数字的出现次数 // counter[num] 代表 num 的出现次数 int[] counter = new int[m + 1];0 码力 | 342 页 | 27.39 MB | 1 年前3 Hello 算法 1.0.0b4 Java版node.height; } /* 更新节点高度 */ void updateHeight(TreeNode node) { // 节点高度等于最高子树高度 + 1 node.height = Math.max(height(node.left), height(node.right)) + 1; } 节点平衡因子 节点的「平衡因子 Balance Factor」定义为节点左子树的高度减去右子树的高度,同时规定空节点的平衡因 简单实现,无法用于排序对象 void countingSortNaive(int[] nums) { // 1. 统计数组最大元素 m int m = 0; for (int num : nums) { m = Math.max(m, num); } // 2. 统计各数字的出现次数 // counter[num] 代表 num 的出现次数 int[] counter = new int[m + 1]; 完整实现,可排序对象,并且是稳定排序 void countingSort(int[] nums) { // 1. 统计数组最大元素 m int m = 0; for (int num : nums) { m = Math.max(m, num); } // 2. 统计各数字的出现次数 // counter[num] 代表 num 的出现次数 int[] counter = new int[m + 1];0 码力 | 342 页 | 27.39 MB | 1 年前3
 Hello 算法 1.1.0 Java版node.height; } /* 更新节点高度 */ void updateHeight(TreeNode node) { // 节点高度等于最高子树高度 + 1 node.height = Math.max(height(node.left), height(node.right)) + 1; } 2. 节点平衡因子 节点的平衡因子(balance factor)定义为节点左子树的高度 简单实现,无法用于排序对象 void countingSortNaive(int[] nums) { // 1. 统计数组最大元素 m int m = 0; for (int num : nums) { m = Math.max(m, num); } // 2. 统计各数字的出现次数 // counter[num] 代表 num 的出现次数 int[] counter = new int[m + 1]; 完整实现,可排序对象,并且是稳定排序 void countingSort(int[] nums) { // 1. 统计数组最大元素 m int m = 0; for (int num : nums) { m = Math.max(m, num); } // 2. 统计各数字的出现次数 // counter[num] 代表 num 的出现次数 int[] counter = new int[m + 1];0 码力 | 378 页 | 18.47 MB | 1 年前3 Hello 算法 1.1.0 Java版node.height; } /* 更新节点高度 */ void updateHeight(TreeNode node) { // 节点高度等于最高子树高度 + 1 node.height = Math.max(height(node.left), height(node.right)) + 1; } 2. 节点平衡因子 节点的平衡因子(balance factor)定义为节点左子树的高度 简单实现,无法用于排序对象 void countingSortNaive(int[] nums) { // 1. 统计数组最大元素 m int m = 0; for (int num : nums) { m = Math.max(m, num); } // 2. 统计各数字的出现次数 // counter[num] 代表 num 的出现次数 int[] counter = new int[m + 1]; 完整实现,可排序对象,并且是稳定排序 void countingSort(int[] nums) { // 1. 统计数组最大元素 m int m = 0; for (int num : nums) { m = Math.max(m, num); } // 2. 统计各数字的出现次数 // counter[num] 代表 num 的出现次数 int[] counter = new int[m + 1];0 码力 | 378 页 | 18.47 MB | 1 年前3
 Hello 算法 1.0.0b5 Java版node.height; } /* 更新节点高度 */ void updateHeight(TreeNode node) { // 节点高度等于最高子树高度 + 1 node.height = Math.max(height(node.left), height(node.right)) + 1; } 2. 节点平衡因子 节点的「平衡因子 balance factor」定义为节点左子树的高 简单实现,无法用于排序对象 void countingSortNaive(int[] nums) { // 1. 统计数组最大元素 m int m = 0; for (int num : nums) { m = Math.max(m, num); } // 2. 统计各数字的出现次数 // counter[num] 代表 num 的出现次数 第 11 章 排序 hello‑algo.com 249 int[] 完整实现,可排序对象,并且是稳定排序 void countingSort(int[] nums) { // 1. 统计数组最大元素 m int m = 0; for (int num : nums) { m = Math.max(m, num); } // 2. 统计各数字的出现次数 // counter[num] 代表 num 的出现次数 int[] counter = new int[m + 1];0 码力 | 376 页 | 30.69 MB | 1 年前3 Hello 算法 1.0.0b5 Java版node.height; } /* 更新节点高度 */ void updateHeight(TreeNode node) { // 节点高度等于最高子树高度 + 1 node.height = Math.max(height(node.left), height(node.right)) + 1; } 2. 节点平衡因子 节点的「平衡因子 balance factor」定义为节点左子树的高 简单实现,无法用于排序对象 void countingSortNaive(int[] nums) { // 1. 统计数组最大元素 m int m = 0; for (int num : nums) { m = Math.max(m, num); } // 2. 统计各数字的出现次数 // counter[num] 代表 num 的出现次数 第 11 章 排序 hello‑algo.com 249 int[] 完整实现,可排序对象,并且是稳定排序 void countingSort(int[] nums) { // 1. 统计数组最大元素 m int m = 0; for (int num : nums) { m = Math.max(m, num); } // 2. 统计各数字的出现次数 // counter[num] 代表 num 的出现次数 int[] counter = new int[m + 1];0 码力 | 376 页 | 30.69 MB | 1 年前3
 Hello 算法 1.0.0 Java版node.height; } /* 更新节点高度 */ void updateHeight(TreeNode node) { // 节点高度等于最高子树高度 + 1 node.height = Math.max(height(node.left), height(node.right)) + 1; } 2. 节点平衡因子 节点的「平衡因子 balance factor」定义为节点左子树的高 简单实现,无法用于排序对象 void countingSortNaive(int[] nums) { // 1. 统计数组最大元素 m int m = 0; for (int num : nums) { m = Math.max(m, num); } // 2. 统计各数字的出现次数 // counter[num] 代表 num 的出现次数 int[] counter = new int[m + 1]; 完整实现,可排序对象,并且是稳定排序 void countingSort(int[] nums) { // 1. 统计数组最大元素 m int m = 0; for (int num : nums) { m = Math.max(m, num); } // 2. 统计各数字的出现次数 // counter[num] 代表 num 的出现次数 int[] counter = new int[m + 1];0 码力 | 376 页 | 17.59 MB | 1 年前3 Hello 算法 1.0.0 Java版node.height; } /* 更新节点高度 */ void updateHeight(TreeNode node) { // 节点高度等于最高子树高度 + 1 node.height = Math.max(height(node.left), height(node.right)) + 1; } 2. 节点平衡因子 节点的「平衡因子 balance factor」定义为节点左子树的高 简单实现,无法用于排序对象 void countingSortNaive(int[] nums) { // 1. 统计数组最大元素 m int m = 0; for (int num : nums) { m = Math.max(m, num); } // 2. 统计各数字的出现次数 // counter[num] 代表 num 的出现次数 int[] counter = new int[m + 1]; 完整实现,可排序对象,并且是稳定排序 void countingSort(int[] nums) { // 1. 统计数组最大元素 m int m = 0; for (int num : nums) { m = Math.max(m, num); } // 2. 统计各数字的出现次数 // counter[num] 代表 num 的出现次数 int[] counter = new int[m + 1];0 码力 | 376 页 | 17.59 MB | 1 年前3
 Hello 算法 1.2.0 简体中文 Java 版node.height; } /* 更新节点高度 */ void updateHeight(TreeNode node) { // 节点高度等于最高子树高度 + 1 node.height = Math.max(height(node.left), height(node.right)) + 1; } 2. 节点平衡因子 节点的平衡因子(balance factor)定义为节点左子树的高度 简单实现,无法用于排序对象 void countingSortNaive(int[] nums) { // 1. 统计数组最大元素 m int m = 0; for (int num : nums) { m = Math.max(m, num); } // 2. 统计各数字的出现次数 // counter[num] 代表 num 的出现次数 int[] counter = new int[m + 1]; 完整实现,可排序对象,并且是稳定排序 void countingSort(int[] nums) { // 1. 统计数组最大元素 m int m = 0; for (int num : nums) { m = Math.max(m, num); } // 2. 统计各数字的出现次数 // counter[num] 代表 num 的出现次数 int[] counter = new int[m + 1];0 码力 | 379 页 | 18.48 MB | 10 月前3 Hello 算法 1.2.0 简体中文 Java 版node.height; } /* 更新节点高度 */ void updateHeight(TreeNode node) { // 节点高度等于最高子树高度 + 1 node.height = Math.max(height(node.left), height(node.right)) + 1; } 2. 节点平衡因子 节点的平衡因子(balance factor)定义为节点左子树的高度 简单实现,无法用于排序对象 void countingSortNaive(int[] nums) { // 1. 统计数组最大元素 m int m = 0; for (int num : nums) { m = Math.max(m, num); } // 2. 统计各数字的出现次数 // counter[num] 代表 num 的出现次数 int[] counter = new int[m + 1]; 完整实现,可排序对象,并且是稳定排序 void countingSort(int[] nums) { // 1. 统计数组最大元素 m int m = 0; for (int num : nums) { m = Math.max(m, num); } // 2. 统计各数字的出现次数 // counter[num] 代表 num 的出现次数 int[] counter = new int[m + 1];0 码力 | 379 页 | 18.48 MB | 10 月前3
 Hello 算法 1.2.0 繁体中文 Java 版node.height; } /* 更新節點高度 */ void updateHeight(TreeNode node) { // 節點高度等於最高子樹高度 + 1 node.height = Math.max(height(node.left), height(node.right)) + 1; } 2. 節點平衡因子 節點的平衡因子(balance factor)定義為節點左子樹的高度 簡單實現,無法用於排序物件 void countingSortNaive(int[] nums) { // 1. 統計陣列最大元素 m int m = 0; for (int num : nums) { m = Math.max(m, num); } // 2. 統計各數字的出現次數 // counter[num] 代表 num 的出現次數 int[] counter = new int[m + 1]; 完整實現,可排序物件,並且是穩定排序 void countingSort(int[] nums) { // 1. 統計陣列最大元素 m int m = 0; for (int num : nums) { m = Math.max(m, num); } // 2. 統計各數字的出現次數 // counter[num] 代表 num 的出現次數 int[] counter = new int[m + 1];0 码力 | 379 页 | 18.79 MB | 10 月前3 Hello 算法 1.2.0 繁体中文 Java 版node.height; } /* 更新節點高度 */ void updateHeight(TreeNode node) { // 節點高度等於最高子樹高度 + 1 node.height = Math.max(height(node.left), height(node.right)) + 1; } 2. 節點平衡因子 節點的平衡因子(balance factor)定義為節點左子樹的高度 簡單實現,無法用於排序物件 void countingSortNaive(int[] nums) { // 1. 統計陣列最大元素 m int m = 0; for (int num : nums) { m = Math.max(m, num); } // 2. 統計各數字的出現次數 // counter[num] 代表 num 的出現次數 int[] counter = new int[m + 1]; 完整實現,可排序物件,並且是穩定排序 void countingSort(int[] nums) { // 1. 統計陣列最大元素 m int m = 0; for (int num : nums) { m = Math.max(m, num); } // 2. 統計各數字的出現次數 // counter[num] 代表 num 的出現次數 int[] counter = new int[m + 1];0 码力 | 379 页 | 18.79 MB | 10 月前3
 Spring Framwork Core Technologies v5.3.36 SNAPSHOTid="numberGuess" class="org.spring.samples.NumberGuess"> Spring Framwork Core Technologies v5.3.36 SNAPSHOTid="numberGuess" class="org.spring.samples.NumberGuess">- All beans in the application context id="numberGuess" class="org.spring.samples.NumberGuess"> - math.RoundingMode).CEILING < T(java.math.RoundingMode).FLOOR") .getValue(Boolean.class); Kotlin val dateClass = 0 码力 | 485 页 | 6.31 MB | 1 年前3
 Hello 算法 1.0.0b2 Java版node.height; } /* 更新结点高度 */ void updateHeight(TreeNode node) { // 结点高度等于最高子树高度 + 1 node.height = Math.max(height(node.left), height(node.right)) + 1; } 结点平衡因子 结点的「平衡因子 Balance Factor」是 结点的左子树高度减去右子树高度,并定义空结点的平衡因子为 简单实现,无法用于排序对象 void countingSortNaive(int[] nums) { // 1. 统计数组最大元素 m int m = 0; for (int num : nums) { m = Math.max(m, num); } // 2. 统计各数字的出现次数 // counter[num] 代表 num 的出现次数 int[] counter = new int[m + 1]; 完整实现,可排序对象,并且是稳定排序 void countingSort(int[] nums) { // 1. 统计数组最大元素 m int m = 0; for (int num : nums) { m = Math.max(m, num); } // 2. 统计各数字的出现次数 // counter[num] 代表 num 的出现次数 11. 排序算法 hello‑algo.com 185 int[]0 码力 | 197 页 | 15.72 MB | 1 年前3 Hello 算法 1.0.0b2 Java版node.height; } /* 更新结点高度 */ void updateHeight(TreeNode node) { // 结点高度等于最高子树高度 + 1 node.height = Math.max(height(node.left), height(node.right)) + 1; } 结点平衡因子 结点的「平衡因子 Balance Factor」是 结点的左子树高度减去右子树高度,并定义空结点的平衡因子为 简单实现,无法用于排序对象 void countingSortNaive(int[] nums) { // 1. 统计数组最大元素 m int m = 0; for (int num : nums) { m = Math.max(m, num); } // 2. 统计各数字的出现次数 // counter[num] 代表 num 的出现次数 int[] counter = new int[m + 1]; 完整实现,可排序对象,并且是稳定排序 void countingSort(int[] nums) { // 1. 统计数组最大元素 m int m = 0; for (int num : nums) { m = Math.max(m, num); } // 2. 统计各数字的出现次数 // counter[num] 代表 num 的出现次数 11. 排序算法 hello‑algo.com 185 int[]0 码力 | 197 页 | 15.72 MB | 1 年前3
 Java 应用与开发 - 面向对象编程进阶< 包路径 >.< 类名 >.* 或: import static < 包路径 >.< 类名 >.< 静态成员名 > CODE ± 应用示例 1 import static java.lang.Math.*; 2 public class Test { 3 public static void main(String[] args) { 4 double d = sin(PI * 0.45);0 码力 | 49 页 | 659.74 KB | 1 年前3 Java 应用与开发 - 面向对象编程进阶< 包路径 >.< 类名 >.* 或: import static < 包路径 >.< 类名 >.< 静态成员名 > CODE ± 应用示例 1 import static java.lang.Math.*; 2 public class Test { 3 public static void main(String[] args) { 4 double d = sin(PI * 0.45);0 码力 | 49 页 | 659.74 KB | 1 年前3
 Spring Framework Reference Documentation 4.3.26.RELEASEid="numberGuess" class="org.spring.samples.NumberGuess"> Spring Framework Reference Documentation 4.3.26.RELEASEid="numberGuess" class="org.spring.samples.NumberGuess">- The variable systemProperties is predefined id="numberGuess" class="org.spring.samples.NumberGuess"> - math.RoundingMode).CEILING < T(java.math.RoundingMode).FLOOR") .getValue(Boolean.class); Constructors Constructors 0 码力 | 1323 页 | 4.08 MB | 1 年前3
共 35 条
- 1
- 2
- 3
- 4














