算法与数据结构
文章平均质量分 71
masquee
...
展开
-
[LeetCode] Path Sum II
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum. For example: Given the below binary tree and sum = 22, 5 / \原创 2015-07-05 10:55:51 · 427 阅读 · 0 评论 -
Kotlin实现二分查找
二分查找;Kotlin实现。原创 2018-03-29 22:49:44 · 667 阅读 · 0 评论 -
关于链表的面试题
在O(1)的时间删除单向链表节点;两个单向链表的第一个公共节点;只遍历一遍,得到单向链表中倒数第k个节点;合并两个排序的链表 ;反转链表;原创 2018-04-22 18:11:27 · 379 阅读 · 0 评论 -
Kotlin实现各种排序
冒泡排序;快速排序;选择排序;插入排序;归并排序;Kotlin实现。原创 2018-03-31 11:24:37 · 5736 阅读 · 1 评论