Problem : A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elemen ...
分类:
其他好文 时间:
2020-04-12 13:58:48
阅读次数:
67
地址:https://leetcode cn.com/problems/longest increasing subsequence/ 大意:给定一个数组,找到最长上升子序列 ` ` ...
分类:
其他好文 时间:
2020-04-12 07:52:21
阅读次数:
78
题目: You've got a string a1,a2,…,ana1,a2,…,an, consisting of zeros and ones. Let's call a sequence of consecutive elements ai,ai?+?1,…,?ajai,ai?+?1,…,? ...
分类:
其他好文 时间:
2020-04-11 20:50:12
阅读次数:
58
嘤嘤嘤,因为最近文化课老师追的紧了+班主任开班会,所以这博客是赶制的赝品 题目: You've got a string a1,a2,…,ana1,a2,…,an, consisting of zeros and ones. Let's call a sequence of consecutive ...
分类:
其他好文 时间:
2020-04-11 20:24:04
阅读次数:
91
Farmer John has decided to reward his cows for their hard work by taking them on a tour of the big city! The cows must decide how best to spend their ...
分类:
其他好文 时间:
2020-04-10 15:56:32
阅读次数:
76
微信公众号:网络民工?组网图形图1配置OSPF基本功能组网图OSPF简介OSPF(OpenShortestPathFirst开放式最短路径优先)是IETF组织开发的一个基于链路状态的内部网关协议(InteriorGatewayProtocol)。目前针对IPv4协议使用的是OSPFVersion2(RFC2328)。OSPF具有适应范围广、收敛快、无自环、区域划分、等价路由、支持验证、组播发送等特
分类:
其他好文 时间:
2020-04-09 12:13:47
阅读次数:
81
题意:给两个长度为n的序列(a1,a2......,an)、(b1,b2......bn)和m个询问以及一个整数k,找出满足k <= S(t) = Σ(i=1 to n) ((t-bi) / ai)向下取整 的最小t。考虑函数的单调性此题可以二分,对于该式子可以证明 ((t-bi) / ai)向下取 ...
分类:
编程语言 时间:
2020-04-09 10:50:50
阅读次数:
70
1、自定义工具部分可以在网上搜一些别人做的工具,主要是把自己经常做的一些任务做成工具,减少重复过程 2、列表部分的简单操作如图所示,实现对三个点的多项式拟合 3、通过序列指令格式可以做一个好玩的效果,做一个好玩的万花筒,指令Sequence(Rotate((stroke1,(n 30°)),n,1, ...
分类:
其他好文 时间:
2020-04-07 20:04:43
阅读次数:
138
"https://leetcode.com/problems/best time to buy and sell stock/" 给定一个数组,其中数组的第 i 个元素表示第 i 天的股票价格,你可以选择在其中一天买股票,然后再后面的某一天卖掉股票,求最大收益。(股票必须要先买才能卖) 这里只能买一 ...
分类:
其他好文 时间:
2020-04-06 00:26:55
阅读次数:
84
An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that when a 6-node binary tree (with the ...
分类:
其他好文 时间:
2020-04-06 00:21:55
阅读次数:
65