惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

月光博客
月光博客
雷峰网
雷峰网
S
SegmentFault 最新的问题
博客园 - 【当耐特】
博客园_首页
量子位
爱范儿
爱范儿
博客园 - 叶小钗
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Jina AI
Jina AI
V
V2EX
美团技术团队
V
Visual Studio Blog
博客园 - 三生石上(FineUI控件)
IT之家
IT之家
Hugging Face - Blog
Hugging Face - Blog
Apple Machine Learning Research
Apple Machine Learning Research
小众软件
小众软件
博客园 - 聂微东
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
The Cloudflare Blog
宝玉的分享
宝玉的分享
WordPress大学
WordPress大学
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Hudson River Trading OA Experience: Two Trading-Style Cod...
net programh · 2026-04-28 · via DEV Community

I recently completed the online assessment for Hudson River Trading (HRT), and my biggest takeaway was this: the questions themselves were not impossible, but the time pressure was very real.

A lot of people assume HRT OAs are purely math-heavy or probability-focused, but my assessment was much more centered around coding implementation, algorithm efficiency, and handling edge cases under pressure. The problems still had a clear trading-firm flavor, but this round felt closer to strong engineering execution than pure quant math.

OA Timeline

I received the OA roughly one week after submitting my application. The platform was straightforward:

  • Problem statement
  • Built-in coding editor
  • Custom test execution
  • Final submission

Compared with firms like Jane Street or Citadel that sometimes include probability games, brain teasers, or mental math rounds early in the process, HRT felt much more direct—open the assessment and start coding immediately.

Question 1: Order Matching Engine Simulation

The first problem was heavily inspired by trading systems.

You were given a stream of buy and sell orders with:

  • Price
  • Quantity
  • Timestamp
  • Order type

The task was to simulate an order matching engine:

  • Buy orders match the lowest sell price first
  • Sell orders match the highest buy price first
  • If prices are equal, earlier timestamps have priority
  • Return all remaining unmatched orders

Example input looked similar to:

buy 100 5
buy 101 3
sell 100 4
sell 99 2

At first glance, this looked like a basic heap problem, but the real difficulty came from implementation details:

  • Partial fills
  • Duplicate price handling
  • Timestamp ordering
  • Edge-case-heavy logic

I initially used sorted containers but quickly realized performance issues would appear on larger test cases.

The better approach was:

  • Max heap for buy orders
  • Min heap for sell orders
  • Immediate matching on every new order

Overall complexity: O(n log n)

Question 2: Market Signal Profit Optimization

The second problem felt like a dynamic programming variation of stock trading problems.

You were given an array of market signals:

[4,2,8,1,6,9...]

You could perform a limited number of operations to maximize total profit under several constraints:

  • Cooldown periods
  • Transaction limits
  • Switching costs

This felt harder than standard stock-buy-sell interview questions because multiple constraints interacted at the same time.

My initial greedy solution passed sample tests but failed hidden cases.

I eventually switched to a DP solution using states like:

dp[i][k][state]

Where state represented:

  • Holding position
  • Not holding
  • Cooldown state

That ended up solving the hidden test failures.

What Made It Difficult?

The hardest part of the HRT OA wasn’t algorithm difficulty—it was speed.

  • Fast implementation
  • Debugging under time pressure
  • Managing hidden edge cases
  • Writing optimized code quickly

I spent nearly half the total time on question one alone, which made the second question much more stressful.

How It Compares to Other Trading Firms

Jane Street: More probability-heavy and game-focused

Citadel: More mixed between math and coding

HRT: Stronger emphasis on implementation quality

If you only practice standard LeetCode interview questions, HRT problems may feel unfamiliar because of their trading-system context.

Preparation Tips

I’d strongly recommend practicing:

  • Heap simulations
  • Order book problems
  • Stock DP variations
  • Binary search optimization
  • Probability fundamentals

Reading interview experiences from HRT, Jane Street, Citadel, and Two Sigma can also help you recognize recurring patterns.

Final Thoughts

For trading firms like HRT, the OA is only the beginning. Later rounds may include:

  • Technical interviews
  • Probability rounds
  • Low-latency systems discussions
  • Behavioral interviews

The biggest lesson from this OA: the problems may look manageable, but execution speed matters a lot more than most candidates expect.