时机leetcode股票209

[LeetCode][494]target-sum

# Content You are given an integer array nums and an integer target. You want to build an expression out of nums by adding one of the symbols '+' and ......
target-sum LeetCode target 494 sum

[LeetCode][416]partition-equal-subset-sum

# Content Given an integer array nums, return true if you can partition the array into two subsets such that the sum of the elements in both subsets i ......

加仓时机

# 加仓时机 ## 1.突破加仓 注意: - 强势市场,突破中枢高点,回调不破中枢可以加仓 - 弱势市场,突破中枢高点不加仓,反而相应减仓 ## 2.跌的多了补仓 补仓逻辑注意: - 上升趋势中,观察布林带口是否张开,回调到布林带中轨可以加试探仓 - 震荡趋势中,回调到布林带下轨可以加重仓,反弹到上 ......
时机

Leetcode 151. 反转字符串中的单词(Reverse words in a string)

[题目链接](https://leetcode.cn/problems/reverse-words-in-a-string) 给你一个字符串 s ,请你反转字符串中 单词 的顺序。 单词 是由非空格字符组成的字符串。s 中使用至少一个空格将字符串中的 单词 分隔开。 返回 单词 顺序颠倒且 单词 之 ......
字符串 单词 字符 Leetcode Reverse

LeetCode46全排列(回溯入门)

### 欢迎访问我的GitHub > 这里分类和汇总了欣宸的全部原创(含配套源码):[https://github.com/zq2599/blog_demos](https://github.com/zq2599/blog_demos) ### 题目描述 - 难度:中等 - 给定一个不含重复数字的数 ......
LeetCode 46

[LeetCode] 2240. Number of Ways to Buy Pens and Pencils

You are given an integer total indicating the amount of money you have. You are also given two integers cost1 and cost2 indicating the price of a pen ......
LeetCode Pencils Number 2240 Ways

MATLAB用GARCH模型对股票市场收益率时间序列波动的拟合与预测|附代码数据

全文链接:http://tecdat.cn/?p=24211 最近我们被客户要求撰写关于GARCH的研究报告,包括一些图形和统计输出。 使用 garch 指定一个单变量GARCH(广义自回归条件异方差)模型 ( 点击文末“阅读原文”获取完整代码数据******** )。 garch 模型的关键参数包 ......

Numpy 的综合案例:股票数据的分析计算

数据归一化 min-max 最值法:将数据转为 0-1 之间的数字。公式如下: 公式中 min 为数据中的最小值,max 为数据中的最大值。该方法是对所获取的数据做线性变换,将数据的一个原始值 X 通过 min-max 标准化映射成在区间 [0,1] 中的值 X’。最小-最大规范化将最后的结果映射到 ......
案例 股票 数据 Numpy

Leetcode 24. 两两交换链表中的节点(Swap nodes in pairs)

[题目链接](https://leetcode.cn/problems/swap-nodes-in-pairsn/) 给你一个链表,两两交换其中相邻的节点,并返回交换后链表的头节点。你必须在不修改节点内部的值的情况下完成本题(即,只能进行节点交换)。 示例 1: ![](https://img202 ......
节点 Leetcode nodes pairs Swap

[LeetCode][338]counting-bits

# Content Given an integer n, return an array ans of length n + 1 such that for each i (0 <= i <= n), ans[i] is the number of 1's in the binary repres ......
counting-bits LeetCode counting bits 338

[LeetCode][337]house-robber-iii

# Content The thief has found himself a new place for his thievery again. There is only one entrance to this area, called root. Besides the root, each ......
house-robber-iii LeetCode robber house 337

[LeetCode][322]coin-change

# Content You are given an integer array coins representing coins of different denominations and an integer amount representing a total amount of mone ......
coin-change LeetCode change coin 322

[LeetCode][312]burst-balloons

# Content You are given n balloons, indexed from 0 to n - 1. Each balloon is painted with a number on it represented by an array nums. You are asked t ......
burst-balloons LeetCode balloons burst 312

[LeetCode] 2483. Minimum Penalty for a Shop

You are given the customer visit log of a shop represented by a 0-indexed string customers consisting only of characters 'N' and 'Y': if the ith chara ......
LeetCode Minimum Penalty 2483 Shop

R语言GARCH族模型:正态分布、t、GED分布EGARCH、TGARCH的VaR分析股票指数|附代码数据

全文链接:http://tecdat.cn/?p=31023 最近我们被客户要求撰写关于GARCH族模型的研究报告,包括一些图形和统计输出。 如何构建合适的模型以恰当的方法对风险进行测量是当前金融研究领域的一个热门话题 ( 点击文末“阅读原文”获取完整代码数据******** )。 VaR方法作为当 ......
正态分布 模型 指数 语言 代码

leetcode & c++多线程刷题日志

## 1.按序打印 [按序打印](https://leetcode.cn/problems/print-in-order/description/) **解法** + 1. 互斥锁 ```c++ class Foo { mutex mtx1, mtx2; public: Foo() { mtx1.l ......
线程 leetcode 日志 amp

Leetcode刷题笔记——单调性

## 单调性 单调性是数学中使用的一种常见性质,通常用于描述函数,在高等数学中的定义常常为: 设函数f(x)在区间I上有定义,如果对于I上的任意两个数x1和x2,当x1f(x2)),则称函数f(x)在区间I上是单调递增的(或者单调递减的)。 例如如下图像就是两个单调函数。 ![](https://i ......
Leetcode 笔记

Leetcode 剑指Offer 05. 替换空格(Ti huan kong ge lcof)

[题目链接](https://leetcode.cn/problems/ti-huan-kong-ge-lcof) 请实现一个函数,把字符串 s 中的每个空格替换成"%20"。 示例 1: ``` 输入:s = "We are happy." 输出:"We%20are%20happy." ``` 提 ......
空格 Leetcode Offer huan kong

[LeetCode][309]best-time-to-buy-and-sell-stock-with-cooldown

# Content You are given an array prices where prices[i] is the price of a given stock on the ith day. Find the maximum profit you can achieve. You may ......

[LeetCode 11]盛最多水的容器 二分

emmm看到这题第一反应是二分_(:з」∠)_ 首先可以观察到,假设我们目前敲定了2块板l和r,那么在l和r之间,低于l和r的板子都是无效的(这个应该显而易见)。 基于这个性质对无效板进行消除,最后会得到一个山峰形(先单调不降,后单调不升) 现在考虑对山峰形如何求解。 考虑枚举每个有效板作为边界,寻 ......
容器 LeetCode 11

Leetcode刷题之 1071. 字符串的最大公因子

# 题目描述 对于字符串 s 和 t,只有在 s = t + ... + t(t 自身连接 1 次或多次)时,我们才认定 “t 能除尽 s”。 给定两个字符串 str1 和 str2 。返回 最长字符串 x,要求满足 x 能除尽 str1 且 x 能除尽 str2 。 示例 1: 输入:str1 = ......
因子 字符串 字符 Leetcode 1071

[LeetCode][300]longest-increasing-subsequence

# Content Given an integer array nums, return the length of the longest strictly increasing subsequence. Example 1: Input: nums = [10,9,2,5,3,7,101,18 ......

Leetcode 15. 三数之和(3Sum)

[题目链接](https://leetcode.cn/problems/3sum) 给你一个整数数组 nums ,判断是否存在三元组 [nums[i], nums[j], nums[k]] 满足 i != j、i != k 且 j != k ,同时还满足 nums[i] + nums[j] + nu ......
之和 Leetcode 3Sum Sum 15

Leetcode2788——按分隔符拆分字符串

给你一个字符串数组 words 和一个字符 separator ,请你按 separator 拆分 words 中的每个字符串。 返回一个由拆分后的新字符串组成的字符串数组,不包括空字符串 。 注意 separator 用于决定拆分发生的位置,但它不包含在结果字符串中。 拆分可能形成两个以上的字符串 ......
分隔符 字符串 字符 Leetcode 2788

LeetCode 周赛上分之旅 #42 当 LeetCode 考树上倍增,出题的趋势在变化吗

> ⭐️ **本文已收录到 AndroidFamily,技术和职场问题,请关注公众号 \[彭旭锐] 和 [BaguTree Pro](https://www.mdnice.com/writing/85b28c4e60354865a423728e668fc570) 知识星球提问。** > > 学习数据 ......
LeetCode 趋势 之旅 42

Leetcode 55

class Solution: def canJump(self, nums: List[int]) -> bool: if len(nums) == 1:return True i = 0;j = i for i in range(100000): if j > i+nums[i]:pass el ......
Leetcode 55

Leetcode 383. 赎金信(Ransom note)

[题目链接](https://leetcode.cn/problems/ransom-note) 给你两个字符串:ransomNote 和 magazine ,判断 ransomNote 能不能由 magazine 里面的字符构成。 如果可以,返回 true ;否则返回 false 。 magazi ......
Leetcode Ransom note 383

LeetCode.283 移动零

题目描述 给定一个数组 nums,编写一个函数将所有 0 移动到数组的末尾,同时保持非零元素的相对顺序。 请注意 ,必须在不复制数组的情况下原地对数组进行操作。 https://leetcode.cn/problems/move-zeroes/description/ 输入: nums = [0,1 ......
LeetCode 283

Leetcode_485. 最大连续 1 的个数

题目描述 给定一个二进制数组, 计算其中最大连续 1 的个数。 示例: 输入:[1,1,0,1,1,1] 输出:3 解释:开头的两位和最后的三位都是连续 1 ,所以最大连续 1 的个数是 3. 提示: 输入的数组只包含 0 和 1 。 输入数组的长度是正整数,且不超过 10,000。 参考实现 示例 ......
个数 Leetcode 485

[刷题记录Day22]Leetcode二叉树

# No.1 ## 题目 [二叉搜索树的最近公共祖先](https://leetcode.cn/problems/lowest-common-ancestor-of-a-binary-search-tree/) ## 思路 - 递归法 - BST特性如何利用?在BST中,公共祖先一定在p、q数值范围 ......
Leetcode Day 22