CODING CHALLENGES

代码题库

用接近 LeetCode 的题表进入训练:先筛选题目,再进入双栏题面和编辑器。每道题只展示它实际声明支持的语言。

继续刷题

题目列表

显示 34 / 646 道可提交题。 当前筛选:标签:Portfolio,难度:中等,语言:Python

提交状态:未尝试未正确已正确
未尝试
coding-alpha-blending-shrinkage订阅锁定
两路 alpha 的收缩融合并 z-score 标准化

Shrinkage Blend of Two Alpha Sources with Z-Score Normalization

中等面试准备Python / C++ / Rust
未尝试
coding-bounded-knapsack-multi-share可练习
单笔上限下的多档行权配置(有界背包)

Multi-Strike Portfolio with Per-Strike Share Cap (Bounded Knapsack)

中等免费版Python / C++ / Rust
未尝试
coding-bucket-vega-hedge-allocator订阅锁定
离散桶状 vega 对冲配比器

Discrete Bucket-Vega Hedge Allocator

中等面试准备Python / C++ / Rust
未尝试
coding-component-var-decomposition订阅锁定
Component VaR Decomposition (Euler Allocation)

Component VaR Decomposition (Euler Allocation)

中等面试准备Python / C++ / Rust
未尝试
coding-correlation-cluster-count可练习
因子聚簇计数:阈值化相关性图的连通分量数

Factor Cluster Count: Connected Components on a Thresholded Correlation Graph

中等免费版Python / C++ / Rust
未尝试
coding-cross-gamma-pnl-attribution订阅锁定
Cross-Gamma 盈亏归因:双资产 Greek 分解

Cross-Gamma PnL Attribution: Two-Asset Greek Decomposition

中等面试准备Python / C++ / Rust
未尝试
coding-decile-spread-return订阅锁定
横截面十分位多空价差收益:跨期平均

Decile-Spread Forward Return Averaged Across Dates

中等面试准备Python / C++ / Rust
未尝试
coding-edit-distance-symbol-mapping可练习
Ticker 符号映射的编辑距离

Edit Distance for Ticker-Symbol Mapping

中等免费版Python / C++ / Rust
未尝试
coding-equal-risk-contribution订阅锁定
等风险贡献组合权重

Equal-Risk-Contribution Portfolio Weights

中等面试准备Python / C++ / Rust
未尝试
coding-equal-risk-contribution-toy订阅锁定
等风险贡献组合(toy 不动点迭代)

Toy Equal-Risk-Contribution Solver (Fixed-Point Iteration)

中等面试准备Python / C++ / Rust
未尝试
coding-euler-risk-allocation订阅锁定
组合波动率的 Euler 风险分解

Euler Risk Allocation for Portfolio Volatility

中等面试准备Python / C++ / Rust
未尝试
coding-factor-risk-attribution订阅锁定
线性因子模型下的逐因子风险归因

Per-Factor Risk Attribution Under a Linear Factor Model

中等面试准备Python / C++ / Rust
未尝试
coding-incremental-var订阅锁定
按资产分解的成分 VaR(Euler 分解)

Component VaR per Asset (Euler Decomposition)

中等面试准备Python / C++ / Rust
未尝试
coding-knapsack-symbol-selection-budget可练习
预算约束下的标的选择(0/1 背包)

Budget-Constrained Ticker Selection (0/1 Knapsack)

中等免费版Python / C++ / Rust
未尝试
coding-largest-correlation-cluster-size可练习
最大因子聚簇规模:阈值化相关性图的最大连通分量大小

Largest Factor Cluster Size: Maximum Connected Component on a Thresholded Correlation Graph

中等免费版Python / C++ / Rust
未尝试
coding-marginal-var-by-asset订阅锁定
Marginal VaR by Asset (Closed-Form Gradient)

Marginal VaR by Asset (Closed-Form Gradient)

中等面试准备Python / C++ / Rust
未尝试
coding-max-reward-disjoint-resource-bitmask-subset可练习
在风险桶预算位掩码下的非交叠对冲合约最大收益选择

Disjoint Risk-Bucket Hedge Selection under a Bucket-Budget Bitmask

中等免费版Python / C++ / Rust
未尝试
coding-min-hops-to-core-factor-set可练习
到核心因子集合的最少跳数:因子相似图上的多源 BFS

Min Hops to Core Factor Set: Multi-Source BFS on a Factor-Similarity Graph

中等免费版Python / C++ / Rust
未尝试
coding-min-replenish-keep-inventory-positive可练习
对冲存量补货:保持非负所需的最少补货次数

Hedge-Inventory Replenishment: Minimum Top-Ups to Stay Non-Negative

中等免费版Python / C++ / Rust
未尝试
coding-min-variance-2asset-toy订阅锁定
两资产最小方差组合(闭式解)

Two-Asset Minimum-Variance Portfolio (Closed Form)

中等面试准备Python / C++ / Rust
未尝试
coding-min-variance-long-only订阅锁定
长仓最小方差组合权重

Long-Only Minimum-Variance Portfolio Weights

中等面试准备Python / C++ / Rust
未尝试
coding-portfolio-delta-aggregation订阅锁定
按标的汇总账本 delta

Aggregate Book Delta per Underlying

中等面试准备Python / C++ / Rust
未尝试
coding-portfolio-expected-loss-by-bucket可练习
组合预期损失分桶聚合:PD x LGD x EAD 瀑布

Portfolio Expected Loss by Bucket: PD x LGD x EAD Waterfall

中等免费版Python / C++ / Rust
未尝试
coding-portfolio-var-multivariate订阅锁定
多资产组合参数法 VaR(w^T Σ w)

Multi-Asset Portfolio Parametric VaR (w^T Σ w)

中等面试准备Python / C++ / Rust
未尝试
coding-portfolio-whole-share-knapsack可练习
单名集中度限制下的整股组合分配

Whole-Share Portfolio Allocator under a Single-Name Cap

中等免费版Python / C++ / Rust
未尝试
coding-position-cap-clamp订阅锁定
单资产与组合层级敞口上限的目标权重夹取

Per-Asset and Portfolio Cap Clamping for Target Weights

中等面试准备Python / C++ / Rust
未尝试
coding-rainbow-best-of-call-mc订阅锁定
Best-of-N 彩虹看涨期权的蒙特卡洛定价(Cholesky + 对偶变量法)

Best-of-N Rainbow Call MC Pricing with Cholesky and Antithetic Variates

中等面试准备Python / C++ / Rust
未尝试
coding-rebalance-on-signal-change订阅锁定
按整数桶变化触发再平衡的低换手回测

Turnover-Aware Rebalance on Bucketed-Signal Change

中等面试准备Python / C++ / Rust
未尝试
coding-replicate-vanillas-into-portfolio订阅锁定
用 vanilla 期权稀疏复制奇异期权 payoff

Sparse Vanilla Replication of an Exotic Payoff

中等面试准备Python / C++ / Rust
未尝试
coding-theta-decay-attribution订阅锁定
多仓位四 Greek 盈亏归因(含 theta 衰减)

Multi-Position Four-Greek P&L Attribution with Theta Decay

中等面试准备Python / C++ / Rust
未尝试
coding-topk-bottomk-portfolio订阅锁定
多最强 K / 空最弱 K 等权组合

Equal-Weight Long-Top-K / Short-Bottom-K Portfolio

中等面试准备Python / C++ / Rust
未尝试
coding-transaction-cost-aware-target订阅锁定
考虑交易成本的目标权重求解

Transaction-Cost-Aware Target Weights from Alpha Signal

中等面试准备Python / C++ / Rust
未尝试
coding-turnover-constrained-rebalance订阅锁定
受换手率上限约束的组合再平衡

Turnover-Constrained Portfolio Rebalance

中等面试准备Python / C++ / Rust
未尝试
coding-vol-weight-portfolio订阅锁定
反波动率组合 + 权重上限

Inverse-Vol Portfolio with Position Cap

中等面试准备Python / C++ / Rust