待整理https://leetcode-cn.com/problems/kth-smallest-element-in-a-sorted-matrix/solution/you-xu-ju-zhen-zhong-di-kxiao-de-yuan-su-by-leetco/ ...
分类:
其他好文 时间:
2020-07-07 17:56:02
阅读次数:
62
力扣链接:https://leetcode-cn.com/problems/shu-zu-zhong-chu-xian-ci-shu-chao-guo-yi-ban-de-shu-zi-lcof/ 题目描述 数组中有一个数字出现的次数超过数组长度的一半,请找出这个数字。你可以假设数组是非空的,并且给 ...
分类:
编程语言 时间:
2020-06-29 09:24:53
阅读次数:
54
题目描述来自力扣https://leetcode-cn.com/problems/shu-zu-zhong-de-ni-xu-dui-lcof/ 在数组中的两个数字,如果前面一个数字大于后面的数字,则这两个数字组成一个逆序对。输入一个数组,求出这个数组中的逆序对的总数。 除了暴力法以外,还有两种更优 ...
分类:
编程语言 时间:
2020-06-25 19:41:41
阅读次数:
65
题目链接:https://leetcode-cn.com/problems/zai-pai-xu-shu-zu-zhong-cha-zhao-shu-zi-lcof/ 二分 时间复杂度:O(logn) 空间复杂度:O(1) class Solution { public: int search(ve ...
分类:
编程语言 时间:
2020-06-06 11:14:43
阅读次数:
48
1.<ruby>标签 显示东亚字符的发音(如中文,日文等),与<rp>,<rt>标签搭配。 //<ruby>为单个发音字符的容器,<rp>为不支持<ruby>标签时显示的内容, //<rt>为字符的发音 <ruby> 中 <rp>(</rp> <rt>zhong</rt> <rp>)</rp> 文 ...
分类:
Web程序 时间:
2020-06-01 20:29:04
阅读次数:
73
剑指Offer-面试题15 二进制中1的个数 二进制中1的个数 https://leetcode-cn.com/problems/er-jin-zhi-zhong-1de-ge-shu-lcof/ 使用一个位运算的小技巧即可。 public int HammingWeight(uint n) { i ...
分类:
其他好文 时间:
2020-05-14 11:32:43
阅读次数:
59
官方解法带视频讲解,推荐先看视频再来看本文的讲解 https://leetcode-cn.com/problems/shu-zu-zhong-de-ni-xu-dui-lcof/solution/shu-zu-zhong-de-ni-xu-dui-by-leetcode-solution/ 采用归并 ...
分类:
编程语言 时间:
2020-05-10 01:08:20
阅读次数:
82
题目链接:https://leetcode cn.com/problems/shu zu zhong shu zi chu xian de ci shu lcof/ 位运算 ...
分类:
编程语言 时间:
2020-05-06 22:09:28
阅读次数:
109
题目链接:https://leetcode cn.com/problems/er cha shu zhong he wei mou yi zhi de lu jing lcof/ 递归 ...
分类:
其他好文 时间:
2020-05-06 21:42:57
阅读次数:
59
题目链接:https://leetcode cn.com/problems/ju zhen zhong de lu jing lcof/ dfs ...
分类:
其他好文 时间:
2020-05-04 15:50:48
阅读次数:
47