CODING CHALLENGES

代码题库

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

继续刷题

题目列表

显示 226 / 646 道可提交题。 当前筛选:标签:Array,语言:Rust

提交状态:未尝试未正确已正确
未尝试
coding-active-quote-peak-count可练习
报价引擎活跃集合:并发活跃报价的峰值数量

Quote Engine Active Set: Peak Concurrently-Live Quotes

中等免费版Python / C++ / Rust
未尝试
coding-alpha-blending-shrinkage订阅锁定
两路 alpha 的收缩融合并 z-score 标准化

Shrinkage Blend of Two Alpha Sources with Z-Score Normalization

中等面试准备Python / C++ / Rust
未尝试
coding-american-mc-longstaff-schwartz订阅锁定
American Put Pricing via Longstaff-Schwartz Least-Squares Monte Carlo

American Put Pricing via Longstaff-Schwartz Least-Squares Monte Carlo

困难面试准备Python / C++ / Rust
未尝试
coding-arrival-price-vs-twap-decision订阅锁定
Arrival Price 与 TWAP 切片在 alpha 衰减下的决策

Arrival Price vs TWAP Decision under Alpha Decay

中等面试准备Python / C++ / Rust
未尝试
coding-arrival-vs-vwap-shortfall订阅锁定
Dual-Benchmark IS — Arrival Price vs Interval VWAP

Dual-Benchmark IS — Arrival Price vs Interval VWAP

中等面试准备Python / C++ / Rust
未尝试
coding-asof-merge-prices-trades订阅锁定
时序对齐合并:为每笔成交附上最近的中间价

As-of Merge — Attach Most-Recent Mid-Price to Each Trade

中等面试准备Python / C++ / Rust
未尝试
coding-asof-merge-trade-fills订阅锁定
时序对齐合并:成交与报价的 as-of 拼接

As-of Merge — Trades against Quotes

中等面试准备Python / C++ / Rust
未尝试
coding-asset-beta-to-benchmark-portfolio订阅锁定
资产对基准组合的逐资产 Beta

Per-Asset Beta to a Benchmark Portfolio

中等面试准备Python / C++ / Rust
未尝试
coding-backtest-with-borrow-cost订阅锁定
含隔夜融券成本的日频回测

Daily Backtest with Overnight Borrow Cost

中等面试准备Python / C++ / Rust
未尝试
coding-basel-output-floor-phase-in-schedule可练习
Basel III 产出底线:分阶段过渡期资本要求向量

Basel III Output Floor — Capital Requirement Across Phase-In Schedule

中等免费版Python / C++ / Rust
未尝试
coding-basel-traffic-light-zones订阅锁定
Basel VaR Backtest Traffic-Light Zones

Basel VaR Backtest Traffic-Light Zones

简单面试准备Python / C++ / Rust
未尝试
coding-basel-var-traffic-light-zone-and-multiplier可练习
Basel VaR 回溯检验:红绿灯分区与资本乘子加成

Basel VaR Backtest — Traffic-Light Zone and Capital Multiplier Add-On

中等免费版Python / C++ / Rust
未尝试
coding-best-pnl-state-with-cooldown可练习
二值仓位策略 —— 含离场后强制冷静期的最佳 PnL

Binary-State Strategy — Best PnL With Post-Exit Cooldown

中等免费版Python / C++ / Rust
未尝试
coding-best-single-trade-in-a-day可练习
日内最优单次交易

Best Single Trade in a Day

简单免费版Python / C++ / Rust
未尝试
coding-best-trades-k-transactions-fee可练习
限次交易加固定手续费的最优收益

Best Trades With K Transactions and Fee

困难免费版Python / C++ / Rust
未尝试
coding-bilateral-cva-and-dva可练习
独立性假设下的双边 CVA 与 DVA:两条折现时间剖面求和

Bilateral CVA and DVA Under Independence: Two Discounted Time-Profile Sums

中等免费版Python / C++ / Rust
未尝试
coding-blocked-cv-time-respecting订阅锁定
时序保留的分块 CV:连续折,train 严格早于 test

Blocked Time-Respecting CV: Contiguous Folds with Train-Before-Test

中等面试准备Python / C++ / Rust
未尝试
coding-bond-portfolio-key-rate-duration-hedge订阅锁定
Bond Portfolio Key-Rate Duration Hedge via Least Squares

Bond Portfolio Key-Rate Duration Hedge via Least Squares

困难面试准备Python / C++ / Rust
未尝试
coding-bounded-trades-best-pnl-with-fee可练习
至多 K 段不重叠多头 round-trip 下的最佳已实现 PnL 上界(含每段冲击成本)

Best Realized PnL Bound Under K Disjoint Round-Trips with Per-Roundtrip Impact Cost

中等免费版Python / C++ / Rust
未尝试
coding-brinson-attribution-three-effects订阅锁定
Brinson-Hood-Beebower 三效应归因

Brinson-Hood-Beebower Three-Effect Attribution

中等面试准备Python / C++ / Rust
未尝试
coding-budgeted-whole-share-portfolio可练习
整股预算下的最大期望收益组合

Budgeted Whole-Share Portfolio

中等免费版Python / C++ / Rust
未尝试
coding-butterfly-arbitrage-check订阅锁定
识别看涨期权行权价网格上的蝶式无套利违规

Detect Butterfly-Arbitrage Violations on a Call-Price Strike Grid

中等面试准备Python / C++ / Rust
未尝试
coding-calmar-ratio-annualized-return-over-mdd订阅锁定
Calmar 比率——年化收益与最大回撤

Calmar Ratio — Annualized Return over Maximum Drawdown

中等面试准备Python / C++ / Rust
未尝试
coding-cds-curve-flat-hazard-survival-curve可练习
由 CDS 利差期限结构构造逐期限扁平 hazard 存活曲线

Per-Tenor Flat-Hazard Survival Curve from a CDS Spread Term Structure

中等免费版Python / C++ / Rust
未尝试
coding-choueifaty-diversification-ratio订阅锁定
高斯组合的 Choueifaty 分散化比率

Choueifaty Diversification Ratio of a Gaussian Portfolio

中等面试准备Python / C++ / Rust
未尝试
coding-christoffersen-conditional-coverage-lr-cc可练习
Christoffersen 条件覆盖性 LR_cc 联合统计量:VaR 回溯检验

Christoffersen Conditional Coverage LR_cc Joint Statistic for VaR Backtesting

中等免费版Python / C++ / Rust
未尝试
coding-christoffersen-independence-lr-test可练习
Christoffersen LR_ind 独立性统计量:VaR 回溯检验

Christoffersen LR_ind Independence Statistic for VaR Backtesting

中等免费版Python / C++ / Rust
未尝试
coding-christoffersen-independence-test订阅锁定
Christoffersen 独立性检验(VaR 突破聚集)

Christoffersen Independence Test for VaR Breach Clustering

中等面试准备Python / C++ / Rust
未尝试
coding-closest-trade-pair-notional可练习
最接近目标名义本金的成交配对

Closest Trade Pair to Target Notional

中等免费版Python / C++ / Rust
未尝试
coding-compact-tick-buffer订阅锁定
把环形 tick 缓冲压缩成等长时间切片

Compact a Ring-Buffer of Ticks into Evenly-Bucketed Time Slices

中等面试准备Python / C++ / Rust
未尝试
coding-component-var-gaussian-portfolio订阅锁定
高斯组合的分量 VaR 分解

Component VaR Decomposition for a Gaussian Portfolio

中等面试准备Python / C++ / Rust
未尝试
coding-composite-factor-icir-weighted订阅锁定
基于 IC-IR 的三因子复合加权

IC-IR-Weighted Composite of Three Sub-Factors

中等面试准备Python / C++ / Rust
未尝试
coding-conditional-scenario-tree-pnl-aggregation可练习
条件情景树的概率加权 PnL 聚合

Conditional Scenario-Tree Probability-Weighted PnL Aggregation

中等免费版Python / C++ / Rust
未尝试
coding-correlated-portfolio-var-from-standalone-vars订阅锁定
由分桌台 VaR 与损失相关矩阵聚合多桌台组合 VaR

Aggregate Multi-Desk VaR from Standalone VaRs and a Loss-Correlation Matrix

中等面试准备Python / C++ / Rust
未尝试
coding-correlated-shock-mc订阅锁定
相关因子冲击蒙特卡洛(压力 P&L)

Correlated Factor-Shock Monte-Carlo for Stress P&L

中等面试准备Python / C++ / Rust
未尝试
coding-counterparty-max-count-differential可练习
对手方活跃度漂移:跨两段成交流水的最大计数差异

Counterparty Activity Shift: Largest Trade-Count Differential Across Two Sessions

简单免费版Python / C++ / Rust
未尝试
coding-counterparty-notional-aggregator可练习
对手方毛敞口聚合器:按规模排序的汇总表

Counterparty Gross-Notional Aggregator: Magnitude-Sorted Roll-Up

简单免费版Python / C++ / Rust
未尝试
coding-credit-el-stress-pd-lgd-shocks可练习
信用预期损失:PD 与 LGD 乘性冲击下的压力测试

Credit Expected Loss under Multiplicative PD and LGD Stress Shocks

中等免费版Python / C++ / Rust
未尝试
coding-credit-portfolio-hhi-and-effective-n可练习
信贷组合集中度:由对手方 EAD 计算 HHI 与有效对手方数

Credit Portfolio Concentration: HHI and Effective Number of Counterparties from Per-Obligor EAD

中等免费版Python / C++ / Rust
未尝试
coding-cross-feed-cum-count-lead-exchanges可练习
跨源行情累计计数领先权交换次数

Cross-Feed Cumulative-Count Lead Exchanges

中等免费版Python / C++ / Rust
未尝试
coding-cross-feed-max-min-paired-lag可练习
跨源行情最差最近匹配配对滞后

Worst Cross-Feed Closest-Match Paired Lag

中等免费版Python / C++ / Rust
未尝试
coding-cross-feed-unmatched-ticks-each-side可练习
跨源行情两侧各自未匹配心跳计数

Cross-Feed Unmatched Tick Counts Per Side Within Tolerance

中等免费版Python / C++ / Rust
未尝试
coding-cross-gamma-2d-shock-grid-pnl可练习
Cross-Gamma 2D Shock-Grid PnL via Bilinear-Quadratic Taylor

Cross-Gamma 2D Shock-Grid PnL via Bilinear-Quadratic Taylor

中等免费版Python / C++ / Rust
未尝试
coding-cross-sectional-demean订阅锁定
横截面 alpha 因子的去均值

Cross-Sectional Demean of an Alpha Factor

中等面试准备Python / C++ / Rust
未尝试
coding-cumret-drawdown-flagged-indices可练习
累计 PnL 回撤告警:超过阈值的水下时刻下标

Cumulative PnL Drawdown Alert: Sorted Indices Underwater Beyond Threshold

中等免费版Python / C++ / Rust
未尝试
coding-cumret-zero-crossings可练习
累计 PnL 零交叉次数:回测净值曲线的符号翻转计数

Cumulative PnL Zero-Crossings: Count Sign Flips of the Backtest Equity Curve

中等免费版Python / C++ / Rust
未尝试
coding-cumulative-volume-snapshot可练习
累计成交量快照查询

Cumulative Volume Snapshot

简单免费版Python / C++ / Rust
未尝试
coding-cumulative-vwap-at-each-tick可练习
逐笔累计成交量加权均价

Cumulative VWAP at Each Tick

中等免费版Python / C++ / Rust
未尝试
coding-day-over-day-counterparty-symmetric-diff可练习
对手方轮动指示器:日间对称差大小序列

Counterparty Rotation Indicator: Day-Over-Day Symmetric-Difference Series

简单免费版Python / C++ / Rust
未尝试
coding-decile-spread-return订阅锁定
横截面十分位多空价差收益:跨期平均

Decile-Spread Forward Return Averaged Across Dates

中等面试准备Python / C++ / Rust
未尝试
coding-dedup-tick-stream订阅锁定
按 (ts, exchange-seq) 去重 tick 流:以最晚到达的 ingest_ts 为准

Deduplicate a Replayed Tick Stream by (ts, exchange-seq), Latest-Ingest Wins

中等面试准备Python / C++ / Rust
未尝试
coding-diebold-mariano-pinball-comparison可练习
基于 Pinball 损失差分的 Diebold-Mariano 两 VaR 预测对比检验

Diebold-Mariano Test for Two VaR Forecasts via Pinball-Loss Differential

中等免费版Python / C++ / Rust
未尝试
coding-distinct-symbols-with-open-orders可练习
持仓监控面板:当前在场的不同标的数量

Open-Order Dashboard Tile: Distinct Symbols Currently In Play

中等免费版Python / C++ / Rust
未尝试
coding-double-no-touch-mc订阅锁定
双不触碰期权的对偶变量蒙特卡洛定价

Double-No-Touch Pricing via Antithetic-Variate Monte Carlo

中等面试准备Python / C++ / Rust
未尝试
coding-downsample-to-bars订阅锁定
把逐笔流降采样为 OHLCV K 线(右闭约定)

Downsample a Tick Stream into OHLCV Bars (Right-Closed)

中等面试准备Python / C++ / Rust
未尝试
coding-earliest-k-orders-cooldown-thresholds可练习
序列化限价单 —— 含逐单触发价与强制冷却间隔的第 K 单最早触发日

Sequenced Limit Orders — Earliest K-th Fire Day With Per-Order Threshold And Cooldown Gap

中等免费版Python / C++ / Rust
未尝试
coding-effective-maturity-for-irb-credit可练习
用作 IRB 信用 RWA 输入的现值加权有效期限 M

PV-Weighted Effective Maturity M for IRB Credit RWA Input

中等免费版Python / C++ / Rust
未尝试
coding-empirical-cdf-loss-tail可练习
在固定 PnL 阈值处的经验 CDF 尾部概率

Empirical CDF Tail Probability at a Fixed PnL Threshold

中等免费版Python / C++ / Rust
未尝试
coding-enumerate-hedge-decompositions可练习
对冲分解组合枚举

Enumerate Hedge Decompositions

中等免费版Python / C++ / Rust
未尝试
coding-es-exceedance-ratio-backtest可练习
Expected Shortfall 校准回溯:超额日比率检验

Expected Shortfall Calibration Backtest via Exceedance-Day Ratio

中等免费版Python / C++ / Rust
未尝试
coding-ewma-sharpe-ratio订阅锁定
指数加权 Sharpe 比率

Exponentially-Weighted Sharpe Ratio

中等面试准备Python / C++ / Rust
未尝试
coding-ewma-volatility-forecast-riskmetrics可练习
RiskMetrics EWMA 波动率预测

RiskMetrics EWMA Volatility Forecast

中等免费版Python / C++ / Rust
未尝试
coding-excess-returns-from-benchmark订阅锁定
相对基准的超额收益

Excess Returns Over a Benchmark

中等面试准备Python / C++ / Rust
未尝试
coding-execution-quality-score-blend订阅锁定
Composite Broker Execution-Quality Score with Direction-Aware Z-Score Blend

Composite Broker Execution-Quality Score with Direction-Aware Z-Score Blend

中等面试准备Python / C++ / Rust
未尝试
coding-expected-rwa-after-rating-migration可练习
评级迁移 H 步后的组合期望 RWA

Expected Portfolio RWA After H Rating-Migration Steps

中等免费版Python / C++ / Rust
未尝试
coding-factor-shock-scenario-pnl订阅锁定
Factor-Shock Scenario P&L on a Linear Factor Model

Factor-Shock Scenario P&L on a Linear Factor Model

中等面试准备Python / C++ / Rust
未尝试
coding-fill-attribution-by-parent-id可练习
按父单 ID 归集成交:子单回填到父单

Fill Attribution by Parent Order ID

简单免费版Python / C++ / Rust
未尝试
coding-fillrate-by-venue-with-cis订阅锁定
按场所统计的成交率与 Wilson 置信区间

Per-Venue Fill Rate with Wilson Confidence Intervals

中等面试准备Python / C++ / Rust
未尝试
coding-first-day-cumulative-pnl-crosses-threshold可练习
累计 PnL 首次突破阈值的交易日

First Day Cumulative PnL Crosses Threshold

简单免费版Python / C++ / Rust
未尝试
coding-first-duplicate-order-id可练习
首个被重复使用的订单 ID

First Duplicate Order ID

中等免费版Python / C++ / Rust
未尝试
coding-first-order-id-with-freq-k可练习
成交审计频次探针:定位首个生命周期 FIX 事件数恰为 k 的 order ID

Fills-Audit Frequency Probe: First Order-ID Whose Lifecycle Hits Exactly k FIX Events

简单免费版Python / C++ / Rust
未尝试
coding-first-unique-character可练习
第一个唯一字符

First Unique Character

简单免费版Python / C++ / Rust
未尝试
coding-forward-fill-missing-minutes订阅锁定
把交易日内缺失的分钟用前一笔向前填充

Forward-Fill Missing Minutes Within a Trading Session

中等面试准备Python / C++ / Rust
未尝试
coding-groupby-mean-by-key订阅锁定
按 key 分组求均值,并附最小样本数门控

Groupby-Mean by Key with a Min-Count Gate

中等面试准备Python / C++ / Rust
未尝试
coding-highest-k-day-range可练习
K 日最大波动区间

Highest K-Day Range

中等免费版Python / C++ / Rust
未尝试
coding-historical-scenario-replay-worst-k可练习
历史情景回放:滚动窗口最劣 K 条累计 PnL

Historical Scenario Replay: Worst-K Rolling-Window PnLs

中等免费版Python / C++ / Rust
未尝试
coding-historical-stress-loss-replay订阅锁定
历史压力情景损失复盘

Historical Stress Loss Replay

中等面试准备Python / C++ / Rust
未尝试
coding-idiosyncratic-volatility订阅锁定
特异波动率因子:滚动剥离市场 β 后的残差标准差

Idiosyncratic Volatility Factor — Rolling Residual Std After Market Beta

中等面试准备Python / C++ / Rust
未尝试
coding-implementation-shortfall-attribution订阅锁定
Implementation Shortfall — Three-Component Attribution

Implementation Shortfall — Three-Component Attribution

中等面试准备Python / C++ / Rust
未尝试
coding-implied-vol-vega-weighted-blend订阅锁定
跨行权价格点的 vega 加权平均隐含波动率

Vega-Weighted Average Implied Volatility Across a Strike Grid

中等面试准备Python / C++ / Rust
未尝试
coding-importance-sampling-deep-otm-mc订阅锁定
Importance Sampling for Deep OTM Monte Carlo

Importance Sampling for Deep OTM Monte Carlo

困难面试准备Python / C++ / Rust
未尝试
coding-incremental-var-of-candidate-trade订阅锁定
候选交易的增量 VaR

Incremental VaR of a Candidate Trade

中等面试准备Python / C++ / Rust
未尝试
coding-information-ratio-active-return订阅锁定
主动收益序列的 Information Ratio

Information Ratio of an Active-Return Series

中等面试准备Python / C++ / Rust
未尝试
coding-jump-diffusion-merton-mc订阅锁定
Merton Jump-Diffusion European Call via Monte Carlo

Merton Jump-Diffusion European Call via Monte Carlo

困难面试准备Python / C++ / Rust
未尝试
coding-jump-game-min-jumps可练习
跳跃游戏 II — 到达终点的最少跳数

Jump Game II — Minimum Jumps to Reach Last Index

中等免费版Python / C++ / Rust
未尝试
coding-k-day-momentum-hits可练习
K 日动量命中数

K-Day Momentum Hits

中等免费版Python / C++ / Rust
未尝试
coding-k-day-rolling-mean-filter可练习
K 日滚动均价滤波

K-Day Rolling Mean Filter

简单免费版Python / C++ / Rust
未尝试
coding-lag-lead-transform-by-key订阅锁定
按 key 做滞后/前瞻偏移——组内时序位移

Lag/Lead Shift by Key — Within-Group Time-Series Offset

中等面试准备Python / C++ / Rust
未尝试
coding-largest-rectangle-order-book-depth可练习
订单簿深度中的最大可执行矩形

Largest Rectangle in Order Book Depth

困难免费版Python / C++ / Rust
未尝试
coding-leverage-ratio-with-ccf可练习
Basel III 杠杆率:表外项的信用转换系数(CCF)合计

Basel III Leverage Ratio: Credit Conversion Factors over Off-Balance Items

中等免费版Python / C++ / Rust
未尝试
coding-lifetime-el-with-survival-weighting可练习
含存活加权与逐期 LGD/EAD 剖面的生命期期望损失

Lifetime Expected Loss with Survival Weighting and Per-Period LGD/EAD

中等免费版Python / C++ / Rust
未尝试
coding-limit-order-fill-simulation订阅锁定
基于高低价 bar 的限价单成交模拟

Limit-Order Fill Simulation against High-Low Bars

中等面试准备Python / C++ / Rust
未尝试
coding-liquidity-coverage-ratio-aggregation可练习
流动性覆盖率:HQLA、流入上限与净流出地板

Liquidity Coverage Ratio: HQLA, Inflow Cap, and Net-Outflow Floor

中等免费版Python / C++ / Rust
未尝试
coding-longest-consecutive-sequence-hash可练习
最长连续整数序列(哈希集合)

Longest Consecutive Sequence (Hash Set)

中等免费版Python / C++ / Rust
未尝试
coding-longest-stable-trading-streak可练习
最长平稳交易区间

Longest Stable Trading Streak

中等免费版Python / C++ / Rust
未尝试
coding-longest-stairstep-cumret-with-min-gap可练习
最低增益门槛下的累积 PnL 报告期最长阶梯式子序列

Longest Stair-Stepping Subsequence Of Cumulative-PnL Reports Under A Minimum-Gain Gate

中等免费版Python / C++ / Rust
未尝试
coding-longest-streak可练习
击穿盈利目标的最长子窗口:单调栈解前缀和长度优化

Longest Sub-Window Beating a PnL Target via Monotonic-Stack on Prefix Sums

中等免费版Python / C++ / Rust
未尝试
coding-look-ahead-bias-detector订阅锁定
通过滞后相关比较检测前视偏差

Look-Ahead Bias Detector via Lagged-Correlation Comparison

中等面试准备Python / C++ / Rust
未尝试
coding-lookback-call-mc订阅锁定
固定执行价回望看涨期权的蒙特卡洛定价

Fixed-Strike Lookback Call Pricing via Monte Carlo

中等面试准备Python / C++ / Rust
未尝试
coding-lopez-magnitude-loss-function-var-backtest可练习
Lopez I 量级损失函数:VaR 回溯检验

Lopez I Magnitude Loss Function for VaR Backtesting

中等免费版Python / C++ / Rust
未尝试
coding-marginal-var-gaussian-portfolio订阅锁定
高斯组合的边际 VaR 敏感度

Marginal VaR Sensitivity for a Gaussian Portfolio

中等面试准备Python / C++ / Rust
未尝试
coding-match-bid-ask-snapshots可练习
撮合买卖盘快照时间戳

Match Bid and Ask Snapshots

简单免费版Python / C++ / Rust
未尝试
coding-max-carry-with-bounded-flip-count可练习
限定反转次数下的累计 carry 最大化

Maximum Cumulative Carry Under a Bounded Sign-Flip Budget

困难免费版Python / C++ / Rust
未尝试
coding-max-cumret-with-bounded-skips可练习
至多跳过 K 期下的最大已实现累积收益

Maximum Realised Cumulative Return When Allowed To Skip At Most K Periods

中等免费版Python / C++ / Rust
未尝试
coding-max-disjoint-positive-runs-min-len可练习
赢段计数 —— 在最小长度约束下,最多不相交正和运行段的数量

Winning-Streak Counting — Maximum Disjoint Positive-Sum Runs of Minimum Length

中等免费版Python / C++ / Rust
未尝试
coding-max-drawdown-decomposition订阅锁定
最大回撤分解

Max Drawdown Decomposition

中等面试准备Python / C++ / Rust
未尝试
coding-max-drawdown-duration订阅锁定
累积净值曲线上的最长回撤期

Maximum Drawdown Duration on the Equity Curve

中等面试准备Python / C++ / Rust
未尝试
coding-max-profit-bounded-drawdown可练习
限定回撤下的最优持仓收益

Maximum Profit Over Bounded-Drawdown Window

困难免费版Python / C++ / Rust
未尝试
coding-max-reward-trades-min-gap可练习
在合规冷却期约束下的最大累计收益(带时间戳的候选交易)

Maximum Total Reward From Timestamped Trade Candidates Under A Compliance Hold-Period Gap

中等免费版Python / C++ / Rust
未尝试
coding-max-reward-with-action-switch-penalty可练习
三态动作路径 —— 含每次切换平摊惩罚的最大累计奖励

Three-State Action Path — Max Cumulative Reward With Flat Per-Flip Switching Penalty

中等免费版Python / C++ / Rust
未尝试
coding-max-strict-monotone-reward-subseq-sum可练习
最小步长递增日内收益子序列的最大累计和(阶梯 PnL 上限)

Max Sum of a Min-Step-Monotone Reward Subsequence (Stair-Step PnL Ceiling)

中等免费版Python / C++ / Rust
未尝试
coding-max-sum-fixed-window-array可练习
定长滑动窗口最大和

Max Sum of Fixed-Size Window

简单免费版Python / C++ / Rust
未尝试
coding-maximum-concurrent-trades可练习
最大同时在仓交易数

Maximum Concurrent Trades

中等免费版Python / C++ / Rust
未尝试
coding-mean-excess-over-threshold-grid可练习
阈值网格上的均值超额曲线

Mean-Excess Curve Across a Threshold Grid

中等免费版Python / C++ / Rust
未尝试
coding-mean-reversion-residual订阅锁定
均值回复因子:对基准残差化的过去 K 日收益

Mean-Reversion Factor — Residualized Last-K Return

中等面试准备Python / C++ / Rust
未尝试
coding-merge-k-sorted-trade-streams可练习
合并 K 条交易所成交磁带

Merge K Sorted Trade Streams

中等免费版Python / C++ / Rust
未尝试
coding-merge-two-trade-tapes可练习
合并两条成交磁带

Merge Two Trade Tapes

中等免费版Python / C++ / Rust
未尝试
coding-min-cancels-quote-stability可练习
最少撤单次数维持报价稳定

Min Cancels for Quote Stability

中等免费版Python / C++ / Rust
未尝试
coding-min-cost-tickets-train-pass可练习
购买地铁通票的最小总花费

Minimum Cost for Train Travel Passes

中等免费版Python / C++ / Rust
未尝试
coding-min-fillrate-meet-deadline可练习
给定每分钟 supply cap 下、按时填满父单所需的最小恒定 maker 填充率

Minimum Constant Maker Fill-Rate to Meet a Parent-Order Deadline Under Per-Minute Supply Caps

中等免费版Python / C++ / Rust
未尝试
coding-min-flips-monotone-pnl可练习
最少翻转使涨跌序列单调

Minimum Flips for Monotone Up-Day Pattern

简单免费版Python / C++ / Rust
未尝试
coding-min-hold-best-single-roundtrip可练习
最低持有期合规约束下单段多头 round-trip 的最佳已实现 PnL

Best Single Round-Trip Realized PnL Under a Minimum-Holding-Period Compliance Rule

中等免费版Python / C++ / Rust
未尝试
coding-min-positive-sum-partitions可练习
净值分桶 —— 在每段长度上限下,最少的严格正和覆盖块

Tear-Sheet Bucketing — Fewest Strictly-Positive-Sum Cover Chunks With Per-Block Length Cap

中等免费版Python / C++ / Rust
未尝试
coding-min-replenishments-to-avoid-stockout可练习
最少补货次数避免缺货

Min Replenishments to Avoid Stockout

困难免费版Python / C++ / Rust
未尝试
coding-min-window-size-meet-volume-target可练习
满足每个窗口都达到目标成交量的最小切片长度

Smallest Slice Length Whose Every Window Meets a Volume Target

中等免费版Python / C++ / Rust
未尝试
coding-mincer-zarnowitz-var-forecast-regression可练习
Mincer-Zarnowitz OLS Regression for VaR-Forecast Unbiasedness

Mincer-Zarnowitz OLS Regression for VaR-Forecast Unbiasedness

中等免费版Python / C++ / Rust
未尝试
coding-modigliani-m-squared-ratio订阅锁定
Modigliani M² — 波动率等价化的风险调整后收益

Modigliani M-Squared — Vol-Rescaled Risk-Adjusted Return

中等面试准备Python / C++ / Rust
未尝试
coding-most-frequent-consecutive-event-pair可练习
订单事件足迹:找出最频繁的连续事件二元组

Order-Event Footprint: Most-Frequent Consecutive Event-Pair

简单免费版Python / C++ / Rust
未尝试
coding-most-frequent-trade-fingerprint可练习
成交带异常检测:找出重复次数最多的成交指纹

Tape-Anomaly Detector: Most-Repeated Trade Fingerprint

中等免费版Python / C++ / Rust
未尝试
coding-multi-horizon-gaussian-var-scaling可练习
多期高斯 VaR 缩放

Multi-Horizon Gaussian VaR Scaling

中等免费版Python / C++ / Rust
未尝试
coding-multi-leg-shortfall-attribution订阅锁定
Multi-Leg Implementation Shortfall — Basket Covariance Attribution

Multi-Leg Implementation Shortfall — Basket Covariance Attribution

困难面试准备Python / C++ / Rust
未尝试
coding-multi-level-monte-carlo-european-call订阅锁定
Multi-Level Monte Carlo for a European Call

Multi-Level Monte Carlo for a European Call

困难面试准备Python / C++ / Rust
未尝试
coding-multifactor-scenario-pnl-vector可练习
多因子情景 PnL 向量:一阶 Taylor 估值

Multi-Factor Scenario PnL Vector via Linear Taylor

中等免费版Python / C++ / Rust
未尝试
coding-mutual-information-feature-rank订阅锁定
用直方图估计的互信息对特征做相关性排序

Rank Features by Histogram-Estimated Mutual Information with the Target

困难面试准备Python / C++ / Rust
未尝试
coding-net-position-from-trade-events可练习
由原始成交流水计算日终净头寸

End-of-Day Net Positions from a Raw Trade Tape

中等免费版Python / C++ / Rust
未尝试
coding-net-stable-funding-ratio-aggregation可练习
净稳定资金比例:ASF 比 RSF 聚合

Net Stable Funding Ratio: ASF over RSF Aggregation

中等免费版Python / C++ / Rust
未尝试
coding-neutralize-by-group订阅锁定
按行业标签做分组中性化

Group-Neutralize a Factor by Sector Tag

中等面试准备Python / C++ / Rust
未尝试
coding-notional-by-venue-ranked可练习
按场所聚合的成交名义额排行榜

Notional by Venue, Ranked

中等免费版Python / C++ / Rust
未尝试
coding-omega-ratio-at-threshold订阅锁定
收益序列在阈值处的 Omega 比率

Omega Ratio of a Return Series at a Threshold

中等面试准备Python / C++ / Rust
未尝试
coding-online-median-slippage可练习
在线滑点中位数

Online Median of Slippage

中等免费版Python / C++ / Rust
未尝试
coding-online-pca-oja-rule-streaming订阅锁定
Online PCA via Oja's Rule (Streaming PC1)

Online PCA via Oja's Rule (Streaming PC1)

困难面试准备Python / C++ / Rust
未尝试
coding-online-zscore-anomaly-flag订阅锁定
在线 Z 分数异常打标

Online Z-Score Anomaly Flag

中等面试准备Python / C++ / Rust
未尝试
coding-optimal-cooldown-period-trades可练习
强制冷静期下的最优多次交易

Optimal Cooldown Period Trades

中等免费版Python / C++ / Rust
未尝试
coding-optimal-strike-allocation可练习
期权价差中的最优行权价分配

Optimal Strike Allocation in Option Spread

困难免费版Python / C++ / Rust
未尝试中等免费版Python / C++ / Rust
未尝试
coding-orphan-cancel-count可练习
路由可靠性检查:统计孤儿撤单数量

Router Reliability Check: Count Orphan Cancellations

中等免费版Python / C++ / Rust
未尝试
coding-partition-orders-basis-mismatch可练习
拆单两腿对冲:最小化基差错配

Partition Orders to Minimize Basis Mismatch

中等免费版Python / C++ / Rust
未尝试
coding-pascals-triangle-row可练习
杨辉三角第 k 行的 O(k) 空间解

Pascal's Triangle Row in O(k) Space

简单免费版Python / C++ / Rust
未尝试
coding-pead-earnings-drift订阅锁定
财报公告后漂移信号:D+1 至 D+60 累计超额收益

Post-Earnings Announcement Drift Signal (D+1 to D+60 Excess Return)

中等面试准备Python / C++ / Rust
未尝试
coding-peak-inventory-day-after-batch-trades可练习
批量区间增量交易后的峰值库存日

Peak Inventory Day After Batched Range-Update Trades

简单免费版Python / C++ / Rust
未尝试
coding-percent-change-from-base订阅锁定
相对可配置基的百分变化

Percent-Change from a Configurable Base

中等面试准备Python / C++ / Rust
未尝试
coding-piecewise-flat-hazard-survival-at-horizons可练习
分段扁平 hazard 期限结构下多视野存活概率

Survival Probability at Multiple Horizons under a Piecewise-Flat Hazard Term Structure

中等免费版Python / C++ / Rust
未尝试
coding-pinball-loss-var-quantile-backtest可练习
VaR 预测回溯检验:Pinball(分位)损失评分

Pinball (Quantile) Loss for VaR Forecast Backtesting

中等免费版Python / C++ / Rust
未尝试
coding-pit-standardized-var-forecast-residual可练习
标准化 VaR 预测残差流:先去均值再除以波动率

Standardized VaR-Forecast Residual Stream — De-Mean Then Divide By Vol

中等免费版Python / C++ / Rust
未尝试
coding-pivot-long-to-wide-panel订阅锁定
长表转宽表:把 (date, ticker, value) 面板透视成二维矩阵

Long-to-Wide Pivot — Reshape a (Date, Ticker, Value) Panel into a Matrix

中等面试准备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-position-cap-clamp订阅锁定
单资产与组合层级敞口上限的目标权重夹取

Per-Asset and Portfolio Cap Clamping for Target Weights

中等面试准备Python / C++ / Rust
未尝试
coding-position-pnl-with-fees订阅锁定
含手续费的持仓盈亏

Position P&L With Transaction Fees

中等面试准备Python / C++ / Rust
未尝试
coding-pov-rate-schedule订阅锁定
带上下限的反应式 POV 执行调度

Reactive POV Schedule with Min/Max Catch-Up Bounds

中等面试准备Python / C++ / Rust
未尝试
coding-purged-cv-folds订阅锁定
带禁运区的 Purged K 折交叉验证

Purged k-Fold CV with Embargo

中等面试准备Python / C++ / Rust
未尝试
coding-purged-kfold-cv-time-series订阅锁定
时间序列机器学习的 Purged K 折交叉验证

Purged k-Fold Cross-Validation for Time-Series ML

困难面试准备Python / C++ / Rust
未尝试
coding-pv-of-post-default-recovery-stream可练习
Present Value of a Post-Default Recovery Cash-Flow Stream

Present Value of a Post-Default Recovery Cash-Flow Stream

中等免费版Python / C++ / Rust
未尝试
coding-quadratic-taylor-scenario-pnl-vector可练习
二阶情景 PnL 向量:delta 加 gamma 的 Taylor 估值

Quadratic-Taylor Scenario PnL Vector via Delta and Gamma

中等免费版Python / C++ / Rust
未尝试
coding-rank-bucket-decile订阅锁定
横截面排名分桶:按序数排名(首现破平)映射到十分位

Cross-Sectional Rank Bucketing into Deciles with Ordinal Tie-Breaks

中等面试准备Python / C++ / Rust
未尝试
coding-rank-corr-spearman订阅锁定
两因子序列的 Spearman 等级相关:平均排名破平

Spearman Rank Correlation with Average-Rank Tie Breaking

中等面试准备Python / C++ / Rust
未尝试
coding-rank-gauss-transform订阅锁定
横截面 alpha 因子的 RankGauss 变换

RankGauss Transform on a Cross-Section of Alpha Factors

中等面试准备Python / C++ / Rust
未尝试
coding-rank-strategies-by-sharpe可练习
按夏普比率排序策略(波动率作为次序)

Rank Strategies by Sharpe with Vol Tiebreak

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

Turnover-Aware Rebalance on Bucketed-Signal Change

中等面试准备Python / C++ / Rust
未尝试
coding-recovery-distance-after-each-day可练习
前向恢复距离:累计增益重新越过阈值所需天数

Forward Recovery Distance: Days Until Cumulative Gain Clears Delta

中等免费版Python / C++ / Rust
未尝试
coding-resample-ohlc-bars订阅锁定
将逐笔成交重采样为定频 OHLC K 线

Resample Tick Prints into Fixed-Interval OHLC Bars

简单面试准备Python / C++ / Rust
未尝试
coding-reverse-stress-test-flag-loss-scenarios可练习
反向压力测试:标记触及亏损阈值的情景

Reverse Stress Test — Flag Scenarios That Hit a Loss Target

中等免费版Python / C++ / Rust
未尝试
coding-reverse-stress-test-target订阅锁定
反向压力测试——求达到目标损失的冲击幅度

Reverse Stress Test — Solve for Shock Magnitude Hitting a Target Loss

中等面试准备Python / C++ / Rust
未尝试
coding-rolling-cointegration-johansen-test订阅锁定
Rolling Engle-Granger Cointegration Test for Pairs Trading

Rolling Engle-Granger Cointegration Test for Pairs Trading

困难面试准备Python / C++ / Rust
未尝试
coding-running-distinct-counterparty-count可练习
对手方多样性诊断:滚动累计不同对手方数量

Counterparty Diversity Diagnostic: Running Distinct Counterparty Count

中等免费版Python / C++ / Rust
未尝试
coding-saccr-ead-with-collateral-and-pfe可练习
SA-CCR 交易对手 EAD:抵押品折减后 RC 加跨资产类别 PFE 乘 Alpha

SA-CCR Counterparty EAD: Collateral-Adjusted RC plus Aggregated PFE with Alpha

中等免费版Python / C++ / Rust
未尝试
coding-sector-day-return-rect-queries可练习
行业-交易日 收益方块:矩形区间求和的批量查询

Sector-Day Return Cube: Batched Rectangular Range Sums

中等免费版Python / C++ / Rust
未尝试
coding-semi-deviation-downside-volatility订阅锁定
围绕样本均值的收益序列半离差

Semi-Deviation of a Return Series Around the Sample Mean

中等面试准备Python / C++ / Rust
未尝试
coding-shortfall-decomp-fee-vs-impact订阅锁定
Implementation Shortfall — Fee vs Market-Impact Decomposition

Implementation Shortfall — Fee vs Market-Impact Decomposition

中等面试准备Python / C++ / Rust
未尝试
coding-single-name-concentration-limit-flagging可练习
单一交易对手集中度:标出突破 Basel 大额风险暴露限额的对手方

Single-Name Concentration: Flag Counterparties Breaching the Basel Large-Exposure Limit

中等免费版Python / C++ / Rust
未尝试
coding-size-factor-log-mcap订阅锁定
规模因子:负对数市值的横截面 z-score

Size Factor as Negative Log Market Cap (Cross-Sectional Z-Score)

中等面试准备Python / C++ / Rust
未尝试
coding-sortino-ratio-with-target订阅锁定
带目标收益的收益序列 Sortino 比率

Sortino Ratio of a Return Series with Target Return

中等面试准备Python / C++ / Rust
未尝试
coding-span-of-higher-highs可练习
新高跨度(连续低价天数)

Span of Higher Highs

中等免费版Python / C++ / Rust
未尝试
coding-sticky-position-best-pnl-with-flip-tax可练习
黏性二值仓位策略 —— 含每次切换税与初始状态锚定的最佳 PnL

Sticky Binary-State Strategy — Best PnL With Per-Flip Tax And Initial-State Anchor

中等免费版Python / C++ / Rust
未尝试
coding-strategy-pnl-bookkeeping可练习
按策略维度的盯市 P&L 簿记

Per-Strategy P&L Bookkeeping with Mark-to-Market

中等免费版Python / C++ / Rust
未尝试
coding-stratified-sampling-mc-european订阅锁定
分层抽样蒙特卡洛:欧式看涨期权定价

European Call MC with Stratified Sampling on Terminal Z

困难面试准备Python / C++ / Rust
未尝试
coding-stress-coverage-ratio-against-capital订阅锁定
Stress Coverage Ratios Against Available Capital

Stress Coverage Ratios Against Available Capital

简单面试准备Python / C++ / Rust
未尝试
coding-stress-loss-aggregation-by-bucket订阅锁定
按桶维度聚合压力测试损失

Stress-Loss Aggregation by Bucket

简单面试准备Python / C++ / Rust
未尝试
coding-subranges-above-return-threshold可练习
累计收益超阈值的子区间计数

Subranges Above Return Threshold

中等免费版Python / C++ / Rust
未尝试
coding-survival-weighted-ee-profile-for-cva可练习
用于 CVA 聚合的存活加权期望敞口剖面

Survival-Weighted Expected-Exposure Profile for CVA Aggregation

中等免费版Python / C++ / Rust
未尝试
coding-survivorship-aware-universe订阅锁定
考虑幸存者偏差的当日可交易股票池

Survivorship-Aware Tradeable Universe on a Date

中等面试准备Python / C++ / Rust
未尝试
coding-systematic-vs-idiosyncratic-variance-decomposition订阅锁定
系统性与特异性方差分解(因子模型)

Systematic-vs-Idiosyncratic Variance Decomposition (Factor Model)

中等面试准备Python / C++ / Rust
未尝试
coding-three-stream-synchronized-triple-count可练习
三流容差同步三元组计数

Three-Stream Synchronized Triple Count Within Tolerance

中等免费版Python / C++ / Rust
未尝试
coding-through-the-cycle-pd-from-pit-series可练习
由 PIT 序列估计跨周期 PD:存活率的几何平均

Through-the-Cycle PD from a Point-in-Time Series: Geometric Mean of Survivals

中等免费版Python / C++ / Rust
未尝试
coding-tick-buffer-binary-search-by-ts订阅锁定
Tick 缓冲:按时间戳的二分查找与区间扫描

Tick Buffer — Binary-Search Lookup and Range Scan by Timestamp

中等面试准备Python / C++ / Rust
未尝试
coding-tier1-capital-ratio-with-deductions可练习
一级资本充足率:CET1 扣减、AT1 加回与 RWA

Tier-1 Capital Ratio: CET1 Deductions, AT1 Add-back, and RWA

中等免费版Python / C++ / Rust
未尝试
coding-top-k-liquid-tickers可练习
流动性 Top-K 标的榜单

Top K Liquid Tickers

简单免费版Python / C++ / Rust
未尝试
coding-top-k-pnl-days-so-far可练习
实时 Top-K 盈利日榜单

Top K PnL Days So Far

中等免费版Python / C++ / Rust
未尝试
coding-tracking-error-contribution-by-sector订阅锁定
各行业对跟踪误差方差的贡献

Tracking-Error Variance Contribution by Sector

中等面试准备Python / C++ / Rust
未尝试
coding-tracking-error-sample-stdev订阅锁定
主动收益序列的标量 Tracking Error

Scalar Tracking Error of an Active-Return Series

中等面试准备Python / C++ / Rust
未尝试
coding-trailing-momentum-factor订阅锁定
滚动 12-1 动量因子(跳过最近一段)

Trailing 12-1 Momentum Factor (Skip Last Month)

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

Transaction-Cost-Aware Target Weights from Alpha Signal

中等面试准备Python / C++ / Rust
未尝试
coding-treynor-ratio-systematic-risk-adjusted订阅锁定
Treynor 比率 — 系统性风险调整后的超额收益

Treynor Ratio — Systematic-Risk-Adjusted Excess Return

中等面试准备Python / C++ / Rust
未尝试
coding-tribonacci-iterative可练习
迭代法求 Tribonacci 数

Iterative Tribonacci Number

简单免费版Python / C++ / Rust
未尝试
coding-twap-equal-slice-schedule订阅锁定
TWAP 等量切片调度与前置余量分配

TWAP Equal-Slice Schedule with Front-Loaded Residue

中等面试准备Python / C++ / Rust
未尝试
coding-twap-with-no-go-windows订阅锁定
带禁止窗口的 TWAP 调度

TWAP Scheduling Through Forbidden No-Go Windows

困难面试准备Python / C++ / Rust
未尝试简单免费版Python / C++ / Rust
未尝试
coding-unilateral-cva-independence可练习
独立性假设下的单边 CVA:折现时间剖面求和

Unilateral CVA Under PD-EE Independence: Discounted Time-Profile Sum

中等免费版Python / C++ / Rust
未尝试
coding-unique-tickers-in-session可练习
盘中出现的唯一标的集合

Unique Tickers In Session

简单免费版Python / C++ / Rust
未尝试
coding-up-down-capture-ratios订阅锁定
相对基准的上行捕获率与下行捕获率

Up-Capture and Down-Capture Ratios versus a Benchmark

中等面试准备Python / C++ / Rust
未尝试
coding-var-backtest-exceedance-cluster-count可练习
VaR 回溯检验:破口数与最长连续段

VaR Backtest Exceedance Count and Longest Cluster

中等免费版Python / C++ / Rust
未尝试
coding-var-breach-counter订阅锁定
统计并标注 VaR 突破日

Count and Timestamp VaR Breaches

中等面试准备Python / C++ / Rust
未尝试
coding-var-hit-residual-lag1-autocorrelation可练习
VaR 命中残差的 Lag-1 自相关

Lag-1 Autocorrelation of VaR Hit Indicators

中等免费版Python / C++ / Rust
未尝试
coding-vectorized-pnl-with-borrow-fee-rate-curve订阅锁定
含时变融券费率曲线的向量化 PnL

Vectorized PnL with Time-Varying Borrow Fee Curve

中等面试准备Python / C++ / Rust
未尝试
coding-vectorized-pnl-with-costs订阅锁定
含交易成本的向量化逐期 PnL

Vectorized Per-Period PnL with Transaction Costs

中等面试准备Python / C++ / Rust
未尝试
coding-vega-pnl-explain订阅锁定
按执行价网格的 Vega 分桶盈亏归因

Vega-Bucketed PnL Explain Across a Strike Grid

中等面试准备Python / C++ / Rust
未尝试
coding-vintage-cohort-period-default-rate可练习
期龄队列每期违约率:贷款 vintage 的条件风险率

Vintage Cohort Per-Period Default Rate: Conditional Hazard from a Loan Vintage

中等免费版Python / C++ / Rust
未尝试
coding-vol-surface-totalvar-interp订阅锁定
Linear Total-Variance Interpolation Across Maturities

Linear Total-Variance Interpolation Across Maturities

中等面试准备Python / C++ / Rust
未尝试
coding-vwap-deviation-by-broker订阅锁定
VWAP Deviation by Broker

VWAP Deviation by Broker

中等面试准备Python / C++ / Rust
未尝试
coding-vwap-tracking-error-pnl订阅锁定
VWAP Tracking-Error P&L

VWAP Tracking-Error P&L

中等面试准备Python / C++ / Rust
未尝试
coding-vwap-volume-curve-schedule订阅锁定
沿成交量曲线的 VWAP 调度与参与率上限

VWAP Schedule Along a Volume Curve with Participation Cap

中等面试准备Python / C++ / Rust
未尝试
coding-walkforward-expanding-window-folds订阅锁定
走向前 CV:扩展窗口与滚动窗口折

Walk-forward CV: Expanding and Rolling-window Folds

中等面试准备Python / C++ / Rust
未尝试
coding-walkforward-validation-strategy订阅锁定
Walk-Forward Validation for Time-Series Backtests

Walk-Forward Validation for Time-Series Backtests

困难面试准备Python / C++ / Rust
未尝试
coding-welford-online-variance订阅锁定
Welford 在线方差

Welford's Online Variance

简单面试准备Python / C++ / Rust
未尝试
coding-winsorize-cross-sectional订阅锁定
横截面 alpha 因子值的 winsorize 截尾

Cross-Sectional Winsorization of Alpha-Factor Values

中等面试准备Python / C++ / Rust
未尝试
coding-zscore-cross-sectional订阅锁定
横截面 z-score 与可选 winsorize 截尾

Cross-Sectional Z-Score with Optional Winsorization

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