CODING CHALLENGES

代码题库

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

继续刷题

题目列表

显示 32 / 646 道可提交题。 当前筛选:标签:Two pointers,难度:中等

提交状态:未尝试未正确已正确
未尝试
coding-asof-merge-trade-fills订阅锁定
时序对齐合并:成交与报价的 as-of 拼接

As-of Merge — Trades against Quotes

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

Closest Trade Pair to Target Notional

中等免费版Python / C++ / Rust
未尝试
coding-consolidated-best-bid-k-feeds可练习
跨 K 路场所报价流的最优买价合并流

Consolidated Best-Bid Stream Across K Venue Quote Feeds

中等免费版Python / C++ / Rust
未尝试
coding-cross-buy-sell-tape-events可练习
买价跨越邻近卖价的跨磁带路由质量告警计数

Cross-Tape Buy-Above-Sell Routing-Quality Alert Count

中等免费版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-tick-match-count可练习
跨源行情心跳容差匹配计数

Cross-Feed Tick Match Count Within Tolerance Window

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

Cross-Feed Unmatched Tick Counts Per Side Within Tolerance

中等免费版Python / C++ / Rust
未尝试
coding-earliest-window-sum-and-floor可练习
同时满足累计收益达到目标且窗口内单期不破下限的最早 K 期窗口

Earliest K-Period Window Whose Cumulative Return Meets A Sum Target And Whose Worst Single Period Stays Above A Floor

中等免费版Python / C++ / Rust
未尝试
coding-earliest-window-variance-breach可练习
最早一段总体方差严格越过冲击阈值的 K 日窗口

Earliest K-Day Window Whose Population Variance Strictly Exceeds A Spike Threshold

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

Forward-Fill Missing Minutes Within a Trading Session

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

Limit-Order Fill Simulation against High-Low Bars

中等面试准备Python / C++ / Rust
未尝试
coding-longest-low-volume-window可练习
给定冲击预算下成交量序列的最长合规连续窗口

Longest Contiguous Window of Volumes Within an Impact Budget

中等免费版Python / C++ / Rust
未尝试
coding-longest-window-abs-return-budget可练习
绝对收益累加不超出波动预算的最长尾部连续窗口

Longest Trailing Window Whose Absolute-Return Sum Stays Within a Volatility Budget

中等免费版Python / C++ / Rust
未尝试
coding-merge-k-quote-streams-heap可练习
带溯源的 K 路报价流合并

Merge K Quote Streams with Lineage

中等免费版Python / C++ / Rust
未尝试
coding-merge-k-venue-trade-tapes可练习
将 K 路场所成交磁带合并为单一时间序流

Merge K Per-Venue Trade Tapes Into One Chronological Stream

中等免费版Python / C++ / Rust
未尝试
coding-merge-news-feed-streams可练习
多源新闻 Feed 取最新 N 条

Top-N Recent Items From Per-Source News Feeds

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

Merge Two Trade Tapes

中等免费版Python / C++ / Rust
未尝试
coding-realign-k-tapes-to-global-clock可练习
用各自的时钟偏移把 K 路成交磁带对齐到全局时钟

Realign K Trade Tapes to a Global Clock with Per-Tape Offsets

中等免费版Python / C++ / Rust
未尝试
coding-rolling-quote-stale-flags可练习
报价更新时间流上的"陈旧期后首次更新"标记

First-Update-After-Stale-Period Flags on a Quote-Update Timestamp Stream

中等免费版Python / C++ / Rust
未尝试
coding-rolling-trade-rate-window可练习
半开回看滑窗下的实时成交率计数

Live Trade-Rate Count over a Half-Open Lookback Sliding Window

中等免费版Python / C++ / Rust
未尝试
coding-rolling-vol-stable-window可练习
滚动样本波动率滑窗下的最长稳定波动率区间

Longest Stable-Volatility Regime via Rolling Sample-Stddev Sliding Window

中等免费版Python / C++ / Rust
未尝试
coding-rolling-window-range-spread可练习
双单调队列滑窗下的分钟级行情极差监控

Minute-Bar Range Monitor via Dual-Deque Sliding Max-Minus-Min

中等免费版Python / C++ / Rust
未尝试
coding-shortest-window-abs-return-target可练习
绝对收益累加首次达到压力预算阈值的最短连续窗口

Shortest Contiguous Window Whose Absolute-Return Sum First Reaches a Stress-Budget Target

中等免费版Python / C++ / Rust
未尝试
coding-shortest-window-k-spikes可练习
收益流中包含 K 个幅度跳点的最短窗口

Shortest Window Containing K Magnitude Spikes in a Return Stream

中等免费版Python / C++ / Rust
未尝试
coding-stream-running-vwap-merged-tapes可练习
跨 K 路场所成交磁带的 running VWAP 流式计算

Running VWAP Across Merged K-Venue Trade Tapes

中等免费版Python / C++ / Rust
未尝试
coding-streaming-median-time-window可练习
固定时间窗口内的流式中位数

Streaming Median Over a Fixed Time Window

中等免费版Python / C++ / Rust
未尝试
coding-streaming-running-mode可练习
流式运行众数:基于懒删除堆维护最高频值

Streaming Running Mode — Most-Frequent Value with Lazy-Deletion Heap

中等免费版Python / C++ / Rust
未尝试
coding-streaming-top-k-by-notional可练习
流式聚合:成交金额前 K 名股票

Streaming Top-K Tickers by Notional

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

Three-Stream Synchronized Triple Count Within Tolerance

中等免费版Python / C++ / Rust
未尝试
coding-trades-to-ohlcv-bars可练习
把成交磁带聚合为分桶 OHLCV K 线

Aggregate a Trade Tape Into Per-Bucket OHLCV Bars

中等免费版Python / C++ / Rust
未尝试
coding-windowed-positive-fraction可练习
定长滑窗内严格正收益占比

Rolling Hit-Rate of Strictly-Positive Returns over a Fixed-Size Window

中等免费版Python / C++ / Rust