CODING CHALLENGES

代码题库

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

继续刷题

题目列表

显示 75 / 646 道可提交题。 当前筛选:难度:困难

提交状态:未尝试未正确已正确
未尝试
coding-almgren-chriss-static-tradeoff订阅锁定
Almgren-Chriss 静态最优执行轨迹

Almgren-Chriss Static Optimal Execution Trajectory

困难面试准备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-antithetic-variates-variance-reduction订阅锁定
对偶变量法的方差缩减比

Antithetic Variates Variance Reduction

困难面试准备Python / C++ / Rust
未尝试
coding-backpressure-credit-flow订阅锁定
基于信用的背压:把生产者/消费者事件流回放成状态 trace

Credit-Based Backpressure — Replay Producer/Consumer Events into a State Trace

困难面试准备Python / C++ / Rust
未尝试
coding-bermudan-option-binomial-recursive订阅锁定
百慕大看跌期权的 CRR 二叉树定价(按行权日选择性早期行权)

Bermudan Put on a CRR Tree with Selective Early-Exercise

困难面试准备Python / C++ / Rust
未尝试
coding-best-trades-k-transactions-fee可练习
限次交易加固定手续费的最优收益

Best Trades With K Transactions and Fee

困难免费版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-k-transactions-2d-dp可练习
限次交易最优收益的 2D 动态规划

Bounded K Transactions: 2D DP for Maximum Profit

困难免费版Python / C++ / Rust
未尝试
coding-card-shuffle-bias-detection可练习
洗牌偏差检测:找出最被高估的排列

Card Shuffle Bias Detection

困难免费版Python / C++ / Rust
未尝试
coding-cir-short-rate-mle订阅锁定
Cox-Ingersoll-Ross 短期利率模型在历史利率序列上的极大似然标定

CIR Short-Rate MLE Calibration on a Historical Series

困难面试准备Python / C++ / Rust
未尝试
coding-count-regime-paths-panic-calm可练习
市场状态路径计数:恐慌须由平静隔开

Count Regime Paths Satisfying Constraint

困难免费版Python / C++ / Rust
未尝试
coding-credit-portfolio-mc-loss-distribution订阅锁定
Credit Portfolio MC Loss Distribution (Single-Factor Gaussian Copula)

Credit Portfolio MC Loss Distribution (Single-Factor Gaussian Copula)

困难面试准备Python / C++ / Rust
未尝试
coding-dag-schedule-with-machine-cap订阅锁定
DAG Schedule on K Machines with Critical-Path Priority

DAG Schedule on K Machines with Critical-Path Priority

困难面试准备Python / C++ / Rust
未尝试
coding-edit-distance-with-cost-matrix订阅锁定
带成本矩阵的加权编辑距离

Weighted Edit Distance with Per-Character Cost Matrices

困难面试准备Python / C++ / Rust
未尝试
coding-empirical-copula-uniform-rank-transform订阅锁定
经验 Copula:按列均匀秩变换

Empirical Copula via Per-Column Uniform Rank Transform

困难面试准备Python / C++ / Rust
未尝试
coding-empirical-marginal-cdf-inverse-mapping可练习
经验逆 CDF 边际映射(Copula 流水线第二步)

Empirical Inverse-CDF Marginal Mapping (Copula Pipeline, Step Two)

困难免费版Python / C++ / Rust
未尝试
coding-empirical-mean-excess-function订阅锁定
用于 POT 阈值选择的经验均值超额函数

Empirical Mean Excess Function for POT Threshold Selection

困难面试准备Python / C++ / Rust
未尝试
coding-empirical-upper-tail-dependence订阅锁定
经验上尾相依系数:由二维联合样本估计

Empirical Upper-Tail-Dependence Coefficient from Bivariate Samples

困难面试准备Python / C++ / Rust
未尝试
coding-execution-with-hard-volume-cap订阅锁定
Optimal Execution Trajectory Under Hard Per-Bucket Volume Caps

Optimal Execution Trajectory Under Hard Per-Bucket Volume Caps

困难面试准备Python / C++ / Rust
未尝试
coding-fork-join-segment-stats订阅锁定
Fork-Join 分段统计(Welford 两段合并)

Fork-Join Segment Stats (Welford Pairwise Merge)

困难面试准备Python / C++ / Rust
未尝试
coding-gaussian-copula-correlated-sample-via-cholesky可练习
通过 Cholesky 分解生成高斯 Copula 相关样本

Gaussian-Copula Correlated Samples via Cholesky Factorisation

困难免费版Python / C++ / Rust
未尝试
coding-gpd-tail-var-extrapolation订阅锁定
POT 框架下基于 GPD 的尾部 VaR 外推

GPD Tail-VaR Extrapolation under the POT Framework

困难面试准备Python / C++ / Rust
未尝试
coding-gumbel-copula-bivariate-cdf可练习
Bivariate Gumbel-Copula CDF Closed-Form Evaluation

Bivariate Gumbel-Copula CDF Closed-Form Evaluation

困难免费版Python / C++ / Rust
未尝试
coding-hdr-histogram-recorded-values订阅锁定
HDR Histogram Recorded-Value Bucket Index and Quantile Estimate

HDR Histogram Recorded-Value Bucket Index and Quantile Estimate

困难面试准备Python / C++ / Rust
未尝试
coding-hill-estimator-tail-index订阅锁定
重尾损失分布尾指数的 Hill 估计

Hill Estimator for the Tail Index of a Heavy-Tailed Loss Distribution

困难面试准备Python / C++ / Rust
未尝试
coding-implied-vol-bisection可练习
Black-Scholes 隐含波动率:严格递增定价曲线上的二分反演

Black-Scholes Implied Volatility on a Strictly Increasing Price Curve via Bisection

困难免费版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-jump-diffusion-merton-mc订阅锁定
Merton Jump-Diffusion European Call via Monte Carlo

Merton Jump-Diffusion European Call via Monte Carlo

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

Largest Rectangle in Order Book Depth

困难免费版Python / C++ / Rust
未尝试
coding-mahalanobis-distance-via-cholesky可练习
通过 Cholesky 前代法计算马氏距离

Mahalanobis Distance via Cholesky Forward-Solve

困难免费版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-diversification-portfolio订阅锁定
最大分散化组合 (Choueifaty-Coignard)

Maximum-Diversification Portfolio (Choueifaty-Coignard)

困难面试准备Python / C++ / Rust
未尝试
coding-max-grid-pnl-path-with-k-skips可练习
最多跳过 K 格的网格 PnL 路径最大化(仅右/下行)

Maximum Grid PnL Path With At-Most-K Cell Skips (Right/Down)

困难免费版Python / C++ / Rust
未尝试
coding-max-profit-bounded-drawdown可练习
限定回撤下的最优持仓收益

Maximum Profit Over Bounded-Drawdown Window

困难免费版Python / C++ / Rust
未尝试
coding-max-reward-trade-action-alignment可练习
交易动作序列的最大奖励对齐

Max-Reward Sequence Alignment Across Trade-Action Streams

困难免费版Python / C++ / Rust
未尝试
coding-mean-variance-frontier-long-only订阅锁定
Long-Only Mean-Variance Efficient Frontier

Long-Only Mean-Variance Efficient Frontier

困难面试准备Python / C++ / Rust
未尝试
coding-min-knight-moves-bfs-grid可练习
马的最少步数 — 无限棋盘上的 BFS

Minimum Knight Moves — BFS on an Infinite Board

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

Min Replenishments to Avoid Stockout

困难免费版Python / C++ / Rust
未尝试
coding-min-routers-binsearch-load-cap可练习
在 BFD 负载封顶分配器下二分搜索最小路由器数量

Smallest Router Count under a BFD Load-Cap Assigner via Bisection

困难免费版Python / C++ / Rust
未尝试
coding-min-stress-factor-keep-cp-within-cap可练习
最小压力情景严重度因子:首次有对手方击穿配额

Smallest Stress Severity Factor Where a Counterparty First Breaches Its Cap

困难免费版Python / C++ / Rust
未尝试
coding-min-window-substring可练习
最小覆盖子串

Minimum Window Substring

困难免费版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-multi-period-dp-with-impact-and-risk订阅锁定
Multi-Period DP for Optimal Execution Under Impact and Risk

Multi-Period DP for Optimal Execution Under Impact and Risk

困难面试准备Python / C++ / Rust
未尝试
coding-multi-period-impact-decay订阅锁定
Multi-Period Impact P&L with Exponential Decay Between Periods

Multi-Period Impact P&L with Exponential Decay Between Periods

困难面试准备Python / C++ / Rust
未尝试
coding-mutual-information-feature-rank订阅锁定
用直方图估计的互信息对特征做相关性排序

Rank Features by Histogram-Estimated Mutual Information with the Target

困难面试准备Python / C++ / Rust
未尝试
coding-next-bigger-bid-bounded-distance-ratio可练习
前向窗口内的下一次 depth-jump:在最佳买价深度 tape 上做受限距离比例阈值扫描

Next Depth-Jump within a Forward Window: Bounded-Distance Ratio-Threshold Scan over a Best-Bid-Depth Tape

困难免费版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-optimal-strike-allocation可练习
期权价差中的最优行权价分配

Optimal Strike Allocation in Option Spread

困难免费版Python / C++ / Rust
未尝试
coding-parallel-pairwise-mean-merge订阅锁定
并行两两均值合并(Kahan 误差补偿)

Parallel Pairwise Mean Merge with Kahan Compensation

困难面试准备Python / C++ / Rust
未尝试
coding-pareto-tail-var-via-hill-estimator订阅锁定
基于 Hill 估计的 Pareto 尾部 VaR 外推

Pareto Tail VaR via Hill-Estimator Extrapolation

困难面试准备Python / C++ / Rust
未尝试
coding-pca-ledoit-wolf-frobenius-shrinkage订阅锁定
Optimal Ledoit-Wolf Shrinkage (Frobenius)

Optimal Ledoit-Wolf Shrinkage (Frobenius)

困难面试准备Python / C++ / Rust
未尝试
coding-pipeline-cache-aware-replay订阅锁定
Cache-Aware Pipeline Replay — Minimum Re-run Set with Input-Hash Chaining

Cache-Aware Pipeline Replay — Minimum Re-run Set with Input-Hash Chaining

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

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

困难面试准备Python / C++ / Rust
未尝试
coding-rank-correlation-spearman-kendall订阅锁定
Spearman 等级相关与 Kendall tau-b:copula 流水线上的双等级相关诊断

Spearman Rho and Kendall Tau-b: Dual Rank-Correlation Diagnostic for the Copula Pipeline

困难面试准备Python / C++ / Rust
未尝试
coding-realized-vol-jump-test-bnsh订阅锁定
Realized-Volatility Jump Test (Barndorff-Nielsen and Shephard)

Realized-Volatility Jump Test (Barndorff-Nielsen and Shephard)

困难面试准备Python / C++ / Rust
未尝试
coding-risk-budget-iterative-allocation订阅锁定
Risk-Budget Allocation via Iterative Fixed-Point

Risk-Budget Allocation via Iterative Fixed-Point

困难面试准备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-rolling-window-variance-ratio-test订阅锁定
Rolling-Window Variance Ratio Test (Lo-MacKinlay)

Rolling-Window Variance Ratio Test (Lo-MacKinlay)

困难面试准备Python / C++ / Rust
未尝试
coding-sor-with-fillrate-priors订阅锁定
Smart-Order Routing With Bayesian Fill-Rate Priors and UCB Exploration

Smart-Order Routing With Bayesian Fill-Rate Priors and UCB Exploration

困难面试准备Python / C++ / Rust
未尝试
coding-spectral-risk-measure订阅锁定
谱风险度量 (Acerbi 2002)

Spectral Risk Measure (Acerbi 2002)

困难面试准备Python / C++ / Rust
未尝试
coding-square-root-impact-fit订阅锁定
加权最小二乘拟合平方根市场冲击系数

Fit the Square-Root Market-Impact Coefficient by Weighted Least-Squares

困难面试准备Python / C++ / Rust
未尝试
coding-stratified-sampling-mc-european订阅锁定
分层抽样蒙特卡洛:欧式看涨期权定价

European Call MC with Stratified Sampling on Terminal Z

困难面试准备Python / C++ / Rust
未尝试
coding-sum-of-min-bid-depth-sweeps可练习
所有连续价位带扫荡的瓶颈深度合计:深度均匀度评分

Aggregate Bottleneck Bid-Depth across All Contiguous Price-Band Sweeps (Depth-Uniformity Score)

困难免费版Python / C++ / Rust
未尝试
coding-svensson-yield-curve-fit订阅锁定
Svensson (1994) 六参数收益率曲线拟合

Svensson (1994) 6-Parameter Yield-Curve Fit

困难面试准备Python / C++ / Rust
未尝试
coding-svi-no-arb-fit订阅锁定
SVI Slice Fit with No-Butterfly-Arbitrage Constraint

SVI Slice Fit with No-Butterfly-Arbitrage Constraint

困难面试准备Python / C++ / Rust
未尝试
coding-t-copula-correlated-samples-given-noise可练习
通过 Cholesky 与卡方标度生成 t-Copula 相关样本

t-Copula Correlated Samples via Cholesky and Chi-Square Scaling

困难免费版Python / C++ / Rust
未尝试
coding-tdigest-percentile-stream订阅锁定
T-Digest 流式分位数估计器(k_1 尺度函数)

T-Digest Streaming Percentile Estimator (k_1 Scale Function)

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

TWAP Scheduling Through Forbidden No-Go Windows

困难面试准备Python / C++ / Rust
未尝试
coding-two-budget-knapsack-strike-premium可练习
双约束下的行权 premium 配置(delta 与 vega 双预算)

Two-Budget Strike-Premium Knapsack (Delta and Vega Caps)

困难免费版Python / C++ / Rust
未尝试
coding-vasicek-portfolio-loss-quantile-asrf可练习
在置信度 alpha 下的 Vasicek ASRF 资本因子(Basel IRB)

Vasicek ASRF Capital Factor at Confidence Level Alpha (Basel IRB)

困难免费版Python / C++ / Rust
未尝试
coding-vasicek-short-rate-mle订阅锁定
Vasicek 短期利率模型在历史利率序列上的极大似然标定

Vasicek Short-Rate MLE Calibration on a Historical Series

困难面试准备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-watermark-driven-late-event订阅锁定
基于水印的滚动窗口与延迟事件处理

Watermark-Driven Tumbling Windows with Late-Event Handling

困难面试准备Python / C++ / Rust
未尝试
coding-weighted-edit-trade-paths可练习
计划与实际交易路径的加权编辑距离

Weighted-Cost Edit Distance Between Trade-Action Paths

困难免费版Python / C++ / Rust