C题卡了一个小时, 又被教育场教育了... A. Minimum Integer 大意:求不在$[l,r]$范围内的最小被$d$整除的数 模拟 B. Accordion 大意: 给定字符串, 可以删除任意字符, 求最长的的手风琴, 手风琴类似于$[::],[:|:],[:||:],[:|||:]$ ...
分类:
其他好文 时间:
2019-01-12 12:14:41
阅读次数:
256
<!doctype html><html> <head> <meta charset="UTF-8"> <title></title> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1, ...
分类:
其他好文 时间:
2019-01-11 13:11:59
阅读次数:
233
Given a Binary Search Tree (BST) with the root node root, return the minimum difference between the values of any two different nodes in the tree. Exa ...
分类:
其他好文 时间:
2019-01-10 17:45:12
阅读次数:
115
An integer interval [a, b] (for integers a < b) is a set of all consecutive integers from a to b, including a and b. Find the minimum size of a set S ...
分类:
其他好文 时间:
2019-01-09 23:36:44
阅读次数:
333
0 1背包问题 问题:有n个物品,第i个物品价值为vi,重量为wi,其中vi和wi均为非负数,背包的容量为W,W为非负数。现需要考虑如何选择装入背包的物品,使装入背包的物品总价值最大。 针对这个经典的动态规划问题,先建立一个实例,如下表格: | 物体编号i | 1 | 2 | 3 | 4 | 5 | ...
分类:
其他好文 时间:
2019-01-09 21:49:19
阅读次数:
205
Given two strings A and B, find the minimum number of times A has to be repeated such that B is a substring of it. If no such solution, return 1. For ...
分类:
其他好文 时间:
2019-01-09 18:37:36
阅读次数:
162
日历(QCalendarWidget)+爬虫API调用+自定义发送信号(传入2个参数) 总体介绍 QCalendarWidget类提供了一个基日历小部件,允许用户选择一个日期。 该小部件使用当前的月份和年份进行初始化,但是QCalendarWidget提供了几个公共槽函数来更改显示的年份和月份。 默 ...
分类:
其他好文 时间:
2019-01-04 22:35:49
阅读次数:
259
1.QTableWidget继承自QTableView。 QSqlTableModel能与QTableView绑定,但不能于QTableWidget绑定。? QTableWidget是QTableView的子类,主要的区别是QTableView可以使用自定义的数据模型来显示内容(也就是先要通过set ...
分类:
其他好文 时间:
2019-01-02 12:29:50
阅读次数:
148
Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). Example: Input: S = "ADOB ...
Given a binary tree, we install cameras on the nodes of the tree. Each camera at a node can monitor its parent, itself, and its immediate children. Ca ...
分类:
其他好文 时间:
2018-12-30 22:00:35
阅读次数:
190