CODING CHALLENGES

代码题库

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

继续刷题

题目列表

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

提交状态:未尝试未正确已正确
未尝试
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-compact-tick-buffer订阅锁定
把环形 tick 缓冲压缩成等长时间切片

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

中等面试准备Python / C++ / Rust
未尝试
coding-cross-sectional-rank-percentile订阅锁定
横截面 alpha 因子的排名分位数变换

Rank-to-Percentile Transform on a Cross-Section of Alpha Factors

中等面试准备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-downsample-to-bars订阅锁定
把逐笔流降采样为 OHLCV K 线(右闭约定)

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

中等面试准备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-lag-lead-transform-by-key订阅锁定
按 key 做滞后/前瞻偏移——组内时序位移

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

中等面试准备Python / C++ / Rust
未尝试
coding-mad-zscore-cross-section订阅锁定
基于中位数和 MAD 的稳健横截面 z-score

Robust Cross-Sectional Z-Score via Median and MAD

简单面试准备Python / C++ / Rust
未尝试
coding-merge-bar-shards-by-date订阅锁定
合并按日分片的 K 线数据为有序时间序列

Merge Per-Day Bar Shards into a Sorted Timeseries

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

Group-Neutralize a Factor by Sector Tag

中等面试准备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-quintile-bucket-by-factor订阅锁定
横截面因子的五分位(k 分位)分桶

Quintile (k-tile) Bucketing of a Cross-Sectional Factor

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

Resample Tick Prints into Fixed-Interval OHLC Bars

简单面试准备Python / C++ / Rust
未尝试
coding-sector-neutralize-factor订阅锁定
横截面 alpha 因子的板块中性化

Sector-Neutralize an Alpha Factor Cross-Section

中等面试准备Python / C++ / Rust
未尝试
coding-vega-bucket-by-maturity订阅锁定
按到期日分桶聚合 vega 风险敞口

Bucket Vega Exposure by Maturity

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