![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
文章平均质量分 69
落花的世界
这个作者很懒,什么都没留下…
展开
-
神奇的二分查找(2)
给一个非负的整数x,求出整数的算术平方根的整数部分。sqrt(x) Example 1: Input: x = 4 Output: 2 Example 2: Input: x = 8 Output: 2 Explanation: The square root of 8 is 2.82842..., and since the decimal part is truncated, 2 is returned. Constraints: 0 <= x <= 2^31 - 1 思路分析 本题原创 2022-05-22 21:51:12 · 147 阅读 · 0 评论 -
插入排序思考
改进插入如排序 普通插入排序 使用二分查找实现插入排序 希尔排序 工具类 ArrayUtils import java.util.Random; public class ArrayUtils { /** * 随机生成数组 * @param min 最小值 * @param max 最大值 * @param number 数组的长度 * @return T[] */ public static Integer[] gener原创 2022-04-11 19:38:47 · 80 阅读 · 0 评论 -
leetcode习题:后序遍历二叉树
后序遍历二叉树leetcode原创 2022-03-27 17:34:11 · 898 阅读 · 0 评论