CODING CHALLENGES

代码题库

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

继续刷题

题目列表

显示 41 / 646 道可提交题。 当前筛选:标签:Simulation,权限:订阅

提交状态:未尝试未正确已正确
未尝试
coding-asian-call-arithmetic-mean订阅锁定
算术平均亚式看涨期权的蒙特卡洛定价(含对偶变量法)

Arithmetic-average Asian Call MC Pricing with Antithetic Variates

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

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

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

Daily Backtest with Overnight Borrow Cost

中等面试准备Python / C++ / Rust
未尝试
coding-barrier-up-and-out-call订阅锁定
向上敲出障碍看涨期权的蒙特卡洛定价(日度监测)

Up-and-out Barrier Call MC Pricing with Daily Monitoring

中等面试准备Python / C++ / Rust
未尝试
coding-clayton-copula-sample订阅锁定
从 Clayton Copula 抽样

Sample from a Clayton Copula

中等面试准备Python / C++ / Rust
未尝试
coding-cliquet-call-mc订阅锁定
本地封顶 Cliquet 看涨期权的蒙特卡洛定价(含对偶变量法)

Locally-capped Cliquet Call MC Pricing with Antithetic Variates

中等面试准备Python / C++ / Rust
未尝试
coding-control-variate-european订阅锁定
欧式看涨 MC:几何亚式控制变量

European Call MC with Geometric-Asian Control Variate

中等面试准备Python / C++ / Rust
未尝试
coding-copula-tail-dependence订阅锁定
经验 Copula 尾依赖系数

Empirical Copula Tail-Dependence Coefficients

中等面试准备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-delta-rebalance-frequency-cost订阅锁定
离散 delta 对冲路径模拟(含交易成本)

Discrete Delta-Hedge Path Simulation with Transaction Costs

中等面试准备Python / C++ / Rust
未尝试
coding-digital-cash-or-nothing订阅锁定
对偶变量蒙特卡洛:数字现金或无看涨期权

Digital Cash-or-Nothing Call Monte Carlo with Antithetic Variates

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

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

中等面试准备Python / C++ / Rust
未尝试
coding-european-call-mc-anti订阅锁定
对偶变量蒙特卡洛:欧式看涨期权定价

European Call Monte Carlo with Antithetic Variates

中等面试准备Python / C++ / Rust
未尝试
coding-first-passage-time-mc订阅锁定
蒙特卡洛估计 OU 过程首次穿越时间

OU First-Passage Time by Monte Carlo

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

Fixed-strike Lookback Call MC Pricing with Discrete Monitoring

中等面试准备Python / C++ / Rust
未尝试
coding-gaussian-copula-sample订阅锁定
从高斯 Copula 抽样

Sample from a Gaussian Copula

中等面试准备Python / C++ / Rust
未尝试
coding-iceberg-replenish-fills订阅锁定
Iceberg Order Book — Replenishment & Fills

Iceberg Order Book — Replenishment & Fills

中等面试准备Python / C++ / Rust
未尝试
coding-kendall-tau-from-ranks订阅锁定
Kendall's Tau-a Rank Correlation on a Bivariate Sample

Kendall's Tau-a Rank Correlation on a Bivariate Sample

中等面试准备Python / C++ / Rust
未尝试
coding-leaky-bucket-rate-limit订阅锁定
Leaky-Bucket Rate Limiter as Admission Control

Leaky-Bucket Rate Limiter as Admission Control

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

Limit-Order Fill Simulation against High-Low Bars

中等面试准备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-pipeline-failed-rerun-cascade订阅锁定
Research Pipeline DAG — Cascade-Invalidate Downstream of a Failed Task

Research Pipeline DAG — Cascade-Invalidate Downstream of a Failed Task

中等面试准备Python / C++ / Rust
未尝试
coding-pipeline-next-runnable-set订阅锁定
Research Pipeline DAG — Compute the Next-Runnable Set

Research Pipeline DAG — Compute the Next-Runnable Set

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

Per-Asset and Portfolio Cap Clamping for Target Weights

中等面试准备Python / C++ / Rust
未尝试
coding-price-time-priority-queue-replay订阅锁定
Price-Time Priority Queue — Order Book Replay

Price-Time Priority Queue — Order Book Replay

中等面试准备Python / C++ / Rust
未尝试
coding-pro-rata-allocation-fills订阅锁定
Pro-Rata Allocation — Single-Level Fill Distribution

Pro-Rata Allocation — Single-Level Fill Distribution

中等面试准备Python / C++ / Rust
未尝试
coding-queue-position-poisson-closed-form订阅锁定
队列位置成交概率:Poisson 到达下的闭式解

Queue Position Fill Probability — Closed-Form Under Poisson Arrivals

中等面试准备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-range-accrual-pricer订阅锁定
Range-Accrual 票据每日观测蒙特卡洛定价(含对偶变量法)

Range-Accrual Note Pricer via Daily-Monitoring MC with Antithetic Variates

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

Turnover-Aware Rebalance on Bucketed-Signal Change

中等面试准备Python / C++ / Rust
未尝试
coding-session-window-by-gap订阅锁定
会话窗口聚合:以间隔为界

Session-Window Aggregation — Gap-Driven Boundaries

中等面试准备Python / C++ / Rust
未尝试
coding-sliding-window-mean-with-eviction订阅锁定
滑动窗口均值:定长窗口与 O(1) 淘汰

Sliding-Window Mean — Fixed-Count Window with O(1) Eviction

中等面试准备Python / C++ / Rust
未尝试
coding-sliding-window-rate-limit订阅锁定
Sliding-Log Rate Limiter (Deque of Admitted Timestamps)

Sliding-Log Rate Limiter (Deque of Admitted Timestamps)

中等面试准备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-token-bucket-with-pending-queue订阅锁定
带有限等待队列的令牌桶限流器

Token-Bucket Rate Limiter with Bounded Pending Queue

中等面试准备Python / C++ / Rust
未尝试
coding-tumbling-window-aggregate订阅锁定
滚动窗口聚合:稀疏输出的每窗统计

Tumbling-Window Aggregation — Sparse Per-Bucket Stats

中等面试准备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-walk-forward-train-test-splits订阅锁定
步进式训练/测试切分(含 embargo 间隔)

Walk-Forward Train/Test Splits with Embargo

中等面试准备Python / C++ / Rust
未尝试
coding-watermark-driven-late-event订阅锁定
基于水印的滚动窗口与延迟事件处理

Watermark-Driven Tumbling Windows with Late-Event Handling

困难面试准备Python / C++ / Rust
未尝试
coding-window-trigger-firing-policy订阅锁定
Tumbling Window Trigger Firing Policies (Early, On-Close, Speculative)

Tumbling Window Trigger Firing Policies (Early, On-Close, Speculative)

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