https://leetcode.com/tag/binary-search/ ...
分类:
其他好文 时间:
2019-02-09 21:13:49
阅读次数:
207
前端 using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Tex ...
"[Lintcode]74. First Bad Version" "[Leetcode]278. First Bad Version" 本题难度: [Lintcode]Medium/[Leetcode] Topic: Binary Search Description 我的代码 for Leet ...
分类:
其他好文 时间:
2019-02-09 10:32:29
阅读次数:
220
Given n, how many structurally unique BST's (binary search trees) that store values 1...n? For example,Given n = 3, there are a total of 5 unique BST' ...
分类:
编程语言 时间:
2019-02-09 00:54:49
阅读次数:
183
GukiZ and Binary Operations 显然我们要拆位, 因为每位都独立, 然后问题就变成能用dp求的东西,然后用矩阵快速幂优化一下。 注意mod为1的情况。 ...
分类:
其他好文 时间:
2019-02-08 17:10:17
阅读次数:
184
Two images A and B are given, represented as binary, square matrices of the same size. (A binary matrix has only 0s and 1s as values.) We translate on ...
分类:
其他好文 时间:
2019-02-07 23:23:10
阅读次数:
214
https://leetcode.com/tag/binary-search-tree/ ...
分类:
其他好文 时间:
2019-02-07 10:52:15
阅读次数:
162
纯小白也能看懂的代码,一起努力 6.3.2 二叉树的层次遍历 例题6-7 树的层次遍历(Trees on the level, Duke 1993, UVa 122) 输入一棵二叉树,你的任务是按从上到下、从左到右的顺序输出各个结点的值。每个结点都按照从根结点到它的移动序列给出(L表示左,R表示右) ...
分类:
其他好文 时间:
2019-02-07 10:46:38
阅读次数:
223
[题目链接] https://www.lydsy.com/JudgeOnline/problem.php?id=2726 [算法] 此题与POJ1180非常相似 但是 , 此题中的t值可能为负 , 这意味着不能每次都将斜率 <= k的点弹出 , 而需要在凸壳中进行二分查找 时间复杂度 : O(Nlo ...
分类:
其他好文 时间:
2019-02-06 22:44:26
阅读次数:
206