@charset "utf-8";html,body,a,h1,h2,h3,h4,h5,h6,p,a,b,i,em,s,u,dl,dt,dd,ul,ol,li,strong,span,table,th,tr,td,img,div,form,fieldset,legend,input,button,s ...
分类:
Web程序 时间:
2020-02-23 20:23:11
阅读次数:
111
参考 https://blog.csdn.net/qq_17550379/article/details/104348023 coordinate_blog大佬的解法 开始第一次直接使用的暴力,结果显示超时,代码就不说了。 第一种解法:学习了动态规划的方法,每一次添加,记录下前面的累积。最后计算的时 ...
分类:
其他好文 时间:
2020-02-22 23:41:54
阅读次数:
85
从问题说开去 接口又返回了乱码咋办呢? 看现象, 查原因 贴到浏览器窗口看 ipython打开贴上去看 说明浏览器和ipython都可以解码 后端怎么给前端准备数据的? //后端修复: josn.dumps(data, ensure_ascii=false) If is false, then th ...
分类:
编程语言 时间:
2020-02-22 21:46:15
阅读次数:
109
// 防抖 export function _debounce(fn, delay) { var delay = delay || 200; var timer; return function () { var th = this; var args = arguments; if (timer) ...
分类:
其他好文 时间:
2020-02-22 09:46:08
阅读次数:
120
The 12th Doctor’s last words: “Oh there it is. Silly old universe. The more I save it, the more it needs saving. It’s a treadmill. “Yes, Yes I know th ...
分类:
其他好文 时间:
2020-02-21 18:15:37
阅读次数:
91
题意: 给出一个N个点的树,找出一个点来,以这个点为根的树时,所有点的深度之和最大 发现从根从某个位置移到它的?一个?子树得出 ans 只要 O(1) 的时间 定义 f[u] 代表以 u 为根结点的深度和 假设 v 是 u 的儿子 ,那么 f[v] 其实就是 v 的子树的深度全部 -1 ,其他节点的 ...
分类:
其他好文 时间:
2020-02-21 00:08:35
阅读次数:
70
LeetCode 0121. Best Time to Buy and Sell Stock买卖股票的最佳时机【Easy】【Python】【贪心】 Problem "LeetCode" Say you have an array for which the i th element is the p ...
分类:
编程语言 时间:
2020-02-19 23:55:42
阅读次数:
125
```c++#include #include #include #include using namespace std;struct station { double per_price; double distance;};bool cmp(const station &s1, const s... ...
分类:
其他好文 时间:
2020-02-19 19:02:25
阅读次数:
81
旧 th:onclick="'javascript:view_attendee_record_list('+${meetingMsg.getMeetingRecordAttendeeState()}+')'" html5的data-*能够为标签添加一些自定义的属性和值,借此来实现。 改为 <a hr ...
分类:
Web程序 时间:
2020-02-18 16:30:22
阅读次数:
107
原题链接在这里:https://leetcode.com/problems/two-city-scheduling/ 题目: There are 2N people a company is planning to interview. The cost of flying the i-th per ...
分类:
其他好文 时间:
2020-02-17 13:58:18
阅读次数:
70