码迷,mamicode.com
首页 >  
搜索关键字:ikkis story iv - pan    ( 2702个结果
LeetCode 188. Best Time to Buy and Sell Stock IV (动态规划)
"题目" 题意:给你一个数组代表每天的股价。你有k次买入和卖出的机会,问你最多能赚多少钱。买入之前必须卖出已有股份。同一天是可以先买,再卖,或者先卖再买的。 题解:题目没有说数据范围,但是经过我实际测试 k 最大为10^8 ,n最大为10^4。当然k最多只需要取n/2就好了,因为当天买当天卖是没有意 ...
分类:其他好文   时间:2020-02-04 14:15:49    阅读次数:73
allure定制报告
Feature: 标注主要功能模块 Story: 标注Features功能模块下的分支功能 Severity: 标注测试用例的重要级别 Step: 标注测试用例的重要步骤 Issue和TestCase: 标注Issue、Case,可加入URL # -*- coding: utf-8 -*- # @T ...
分类:其他好文   时间:2020-02-04 09:13:11    阅读次数:169
LeetCode 473 - Matchsticks to Square - Medium (Python)
Remember the story of Little Match Girl? By now, you know exactly what matchsticks the little match girl has, please find out a way you can make one s ...
分类:编程语言   时间:2020-01-31 10:39:41    阅读次数:122
leetcode 653. Two Sum IV - Input is a BST
题目内容 Given a Binary Search Tree and a target number, return true if there exist two elements in the BST such that their sum is equal to the given targ ...
分类:其他好文   时间:2020-01-29 20:00:01    阅读次数:62
[LeetCode] 13. Roman to Integer
罗马数字转换整数。题意跟12题恰好相反。例子, Example 1: Input: "III" Output: 3 Example 2: Input: "IV" Output: 4 Example 3: Input: "IX" Output: 9 Example 4: Input: "LVIII" ...
分类:其他好文   时间:2020-01-29 10:30:12    阅读次数:70
[Leetcode]653.Two Sum IV - Input is a BST
链接: "LeetCode653" 给定一个二叉搜索树和一个目标结果,如果 BST 中存在两个元素且它们的和等于给定的目标结果,则返回 true。 相关标签: 哈希表 类似于求两数之和,我们只需要在遍历二叉树过程中寻找是否存在有数为k 已经遍历到的数即可。 代码如下: python: C++: ...
分类:其他好文   时间:2020-01-28 22:58:39    阅读次数:75
Ignatius and the Princess IV HDU - 1029 基础dp
#include<iostream> #include<cstring> #include<cmath> #include<cstdio> #include<algorithm> #include<stack> #include<queue> using namespace std; const i ...
分类:其他好文   时间:2020-01-28 15:34:42    阅读次数:71
题解 SP2713 【GSS4 - Can you answer these queries IV】
用计算器算一算,就可以发现$10^{18}$的数,被开方$6$次后就变为了$1$。 所以我们可以直接暴力的进行区间修改,若这个数已经到达$1$,则以后就不再修改(因为$1$开方后还是$1$),用并查集和树状数组进行维护。 这个方法用了 "P2391 白雪皑皑" 的思想处理,用并查集标记该点已经不再用 ...
分类:其他好文   时间:2020-01-22 23:56:25    阅读次数:121
课时10:迭代器、迭代器失效分析
1.迭代器简介迭代器是一种遍历容器元素的数据类型,这种数据类型类似指针,理解的时候可以理解为迭代器用来指向容器中的某个元素2.容器的迭代器类型vector<int> iv ={100,200,300};vector<int>::iterator iter; //定义迭代器 3.迭代器begin()/ ...
分类:其他好文   时间:2020-01-17 16:23:13    阅读次数:87
Android/Unity大乱斗-完整双方集成交互指南
这是一个很长很长的story!-芝麻粒儿创作 开篇 源码地址:GitHub 本文目的,将Unity集成到Android端,学完本文后你可以做到 Android任意布局加载Unity 3D场景 任意操作布局中的按钮/3D物品(缩放旋转等) 互相消息通信(你叼我,我叼你) 自由切换Unity中的场景 动 ...
分类:移动开发   时间:2020-01-13 16:04:34    阅读次数:103
2702条   上一页 1 ... 7 8 9 10 11 ... 271 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!