CODING CHALLENGES

代码题库

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

继续刷题

题目列表

显示 55 / 646 道可提交题。 当前筛选:标签:Hash map,语言:Python

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

Quote Engine Active Set: Peak Concurrently-Live Quotes

中等免费版Python / C++ / Rust
未尝试
coding-array-product-except-self可练习
除自身以外数组的乘积

Array Product Except Self

简单免费版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-canonical-symbol-form可练习
代码符号规整 — 跨场所去重分组

Canonical Ticker-Symbol Form — Cross-Venue Dedup

简单免费版Python / C++ / Rust
未尝试
coding-canonical-symbol-group-ids可练习
预聚合分桶标签:多场所同标的的规范化分组编号

Pre-Aggregation Bucket Labels: Canonical-Form Group IDs for Multi-Venue Symbols

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

Card Shuffle Bias Detection

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

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

中等面试准备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-cross-sectional-rank-percentile订阅锁定
横截面 alpha 因子的排名分位数变换

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

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

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

简单免费版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-distinct-symbols-with-open-orders可练习
持仓监控面板:当前在场的不同标的数量

Open-Order Dashboard Tile: Distinct Symbols Currently In Play

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

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

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

Fill Attribution by Parent Order ID

简单免费版Python / C++ / Rust
未尝试
coding-find-pivot-index可练习
P&L 序列的枢轴下标

Find the Pivot Index of a P&L Stream

简单免费版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-fix-message-checksum-verify可练习
FIX 风格尾字段校验和:管道分隔消息逐条三态判定

FIX-Style Trailing Checksum Verify: Trinary Label Per Pipe-Delimited Message

中等免费版Python / C++ / Rust
未尝试
coding-fix-tag-extract可练习
FIX 风格 tag 取值:在管道分隔消息中取数字 tag 的首个值

FIX-Style Tag Extract: First Value for a Numeric Tag in a Pipe-Delimited Message

中等免费版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-longest-consecutive-sequence-hash可练习
最长连续整数序列(哈希集合)

Longest Consecutive Sequence (Hash Set)

中等免费版Python / C++ / Rust
未尝试
coding-longest-palindromic-substring可练习
最长回文子串

Longest Palindromic Substring

简单免费版Python / C++ / Rust
未尝试
coding-longest-substring-no-repeat可练习
无重复字符的最长子串

Longest Substring Without Repeating Characters

简单免费版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-min-window-substring可练习
最小覆盖子串

Minimum Window Substring

困难免费版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-net-position-from-trade-events可练习
由原始成交流水计算日终净头寸

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

中等免费版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-orphan-cancel-count可练习
路由可靠性检查:统计孤儿撤单数量

Router Reliability Check: Count Orphan Cancellations

中等免费版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-position-fingerprint-grouping可练习
组合持仓指纹聚类

Position Fingerprint Grouping

中等免费版Python / C++ / Rust
未尝试
coding-quintile-bucket-by-factor订阅锁定
横截面因子的五分位(k 分位)分桶

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

中等面试准备Python / C++ / Rust
未尝试
coding-range-sum-2d-prefix可练习
二维区间和查询(前缀和表)

2D Range Sum via Prefix Table

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

Resample Tick Prints into Fixed-Interval OHLC Bars

简单面试准备Python / C++ / Rust
未尝试
coding-roman-to-integer-conversion可练习
罗马数字转整数

Roman Numeral to Integer

简单免费版Python / C++ / Rust
未尝试
coding-running-distinct-counterparty-count可练习
对手方多样性诊断:滚动累计不同对手方数量

Counterparty Diversity Diagnostic: Running Distinct Counterparty Count

中等免费版Python / C++ / Rust
未尝试
coding-sector-neutralize-factor订阅锁定
横截面 alpha 因子的板块中性化

Sector-Neutralize an Alpha Factor Cross-Section

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

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

中等免费版Python / C++ / Rust
未尝试
coding-string-reverse-sentence-words可练习
反转句子中的单词

Reverse Words in a Sentence

简单免费版Python / C++ / Rust
未尝试
coding-string-valid-palindrome-check可练习
有效回文判断(仅字母数字、忽略大小写)

Valid Palindrome (Alphanumeric, Case-Insensitive)

简单免费版Python / C++ / Rust
未尝试
coding-subarray-sum-equals-k可练习
和为 K 的子数组数

Subarray Sum Equals K

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

Top K Liquid Tickers

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

Unique Tickers In Session

简单免费版Python / C++ / Rust
未尝试
coding-valid-anagram-character-counts可练习
有效的字母异位词(字符计数)

Valid Anagram (Character Counts)

简单免费版Python / C++ / Rust
未尝试
coding-vega-bucket-by-maturity订阅锁定
按到期日分桶聚合 vega 风险敞口

Bucket Vega Exposure by Maturity

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