240 发简信
IP属地:香港
  • Java8新特性

    Java8新特性 Project 01 给出了行为参数化传递代码的方式 定义一个标准的谓词模板 用ApplePredicate的多个实现代表不同...

  • 组合总和

    Algorithm 39. Combination Sum[https://leetcode.com/problems/combination-...

  • 字符串解码

    Algorithm 394. Decode String[https://leetcode.com/problems/decode-string...

  • 合并两个有序数组

    Algorithm 88. Merge Sorted Array[https://leetcode.com/problems/merge-sor...

  • 二叉树序列化与反序列化

    Algorithm 449. Serialize and Deserialize BST[https://leetcode.com/proble...

  • 无重复字符的最长子串

    Algorithm 3. Longest Substring Without Repeating Characters[https://leet...

  • 线程池提交同步或异步任务

    提交Runnable任务 Runnable有一个run()函数,用于将耗时操作写在其中,该函数没有返回值。然后使用某个线程去执行该runnabl...

  • 如何区分Java并发中的闭锁(Latch)和栅栏(CyclicBarrier)

    闭锁概念理解 闭锁(Latch):一种同步方法,可以延迟线程的进度直到线程到达某个终点状态。通俗地讲就是,一个闭锁相当于一扇大门,在大门打开之前...

  • Mockito测试

    Mockito测试 通过Mockito测试,对上述功能进行集成测试,拆解不同的服务,然后Mock一些数据库或者底层的操作,增加开发效率,在下游没...