用户中心USER CENTER

首页/用户
  • leetcode378. Kth Smallest Element in a Sorted Matr

    摘要:因此我们可以采用部分元素堆排序即可。即我们每次只需要可能构成第个元素的值进行堆排序就可以了。 题目要求 Given a n x n matrix where each of the rows and columns are sorted in ascending order, find the kth smallest element in the matrix. Note that...

    dailybird 发布于Java
  • [LeetCode] 739. Daily Temperatures

    Problem Given a list of daily temperatures T, return a list such that, for each day in the input, tells you how many days you would have to wait until a warmer temperature. If there is no future day f...

    dailybird 发布于Java
  • spring--源码分析

    摘要:将绝对路径下的资源解释为相对路径,给相应的类加载定位的资源的实现,支持路径或协议下的文件用于加载或的路径资源类的抽象基类。一个实现描述资源但不是一个真实资源的实现。 Spring的配置文件是通过ClassPathResource来进行封装的,在Java中,不同的资源抽象成URL,通过注册不同的handle来处理不同的URL获取逻辑,一般的handle类型通过使用不同的前缀来来识别,比如...

    dailybird 发布于Java
  • [LeetCode] 689. Maximum Sum of 3 Non-Overlapping S

    摘要: Problem In a given array nums of positive integers, find three non-overlapping subarrays with maximum sum. Each subarray will be of size k, and we want to maximize the sum of all 3*k entries. R...

    dailybird 发布于Java
  • JDK9新特性实战:简化流关闭新姿势。

    摘要:如下面的,定义成局部变量可以不用,局部变量可以等同于,但定义成成员变量就必须是用修饰的,不然会编译错误。虽然简化了,但感觉还是没有什么质的变化,实际用途我们可能不希望关心资源的关闭,或者在方法结束之后如果是局部变量它就能自动关闭。 showImg(https://segmentfault.com/img/remote/1460000015379050); 做Java开发的都知道,每个资...

    dailybird 发布于Java
<