PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Coding & Algorithms/Hudson River Trading

Implement Wordle-style word guessing solver

Last updated: Apr 14, 2026

Quick Overview

This question evaluates a candidate's skills in algorithm design, constraint propagation, candidate-set pruning, and strategy selection for a Wordle-style solver within the Coding & Algorithms domain.

  • Medium
  • Hudson River Trading
  • Coding & Algorithms
  • Software Engineer

Implement Wordle-style word guessing solver

Company: Hudson River Trading

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: Medium

Interview Round: Technical Screen

Implement a program to solve a Wordle-style word guessing game. The game has a hidden target word of fixed length L (e.g., 5) drawn from a known dictionary. After each guess, you receive per-character feedback: Correct (right letter, right position), Present (letter exists but different position), or Absent (letter not in the word). Requirements: ( 1) Keep guessing until the word is solved or a maximum attempt limit is reached; ( 2) Design data structures and an algorithm to maintain constraints and prune the candidate set after each feedback; ( 3) Correctly handle repeated letters and seemingly conflicting feedback (e.g., one instance Present while another is Absent); ( 4) Propose and implement a strategy to choose the next guess (e.g., frequency-based heuristic or information-gain approximation) and justify it; ( 5) Provide an interface solve(dictionary, feedback_api, max_attempts) -> (final_guess, num_attempts) where feedback_api(guess) returns the feedback for each position; ( 6) Analyze time and space complexity; ( 7) Include unit tests and demonstrate a sample run.

Quick Answer: This question evaluates a candidate's skills in algorithm design, constraint propagation, candidate-set pruning, and strategy selection for a Wordle-style solver within the Coding & Algorithms domain.

Related Interview Questions

  • Approach verbose data-structure design - Hudson River Trading (Medium)
  • Test easy–medium array/string tasks - Hudson River Trading (Medium)
Hudson River Trading logo
Hudson River Trading
Jul 17, 2025, 12:00 AM
Software Engineer
Technical Screen
Coding & Algorithms
15
0

Implement a program to solve a Wordle-style word guessing game. The game has a hidden target word of fixed length L (e.g., 5) drawn from a known dictionary. After each guess, you receive per-character feedback: Correct (right letter, right position), Present (letter exists but different position), or Absent (letter not in the word). Requirements: (

  1. Keep guessing until the word is solved or a maximum attempt limit is reached; (
  2. Design data structures and an algorithm to maintain constraints and prune the candidate set after each feedback; (
  3. Correctly handle repeated letters and seemingly conflicting feedback (e.g., one instance Present while another is Absent); (
  4. Propose and implement a strategy to choose the next guess (e.g., frequency-based heuristic or information-gain approximation) and justify it; (
  5. Provide an interface solve(dictionary, feedback_api, max_attempts) -> (final_guess, num_attempts) where feedback_api(guess) returns the feedback for each position; (
  6. Analyze time and space complexity; (
  7. Include unit tests and demonstrate a sample run.

Submit Your Answer

Sign in to leave a comment

Loading comments...

Browse More Questions

More Coding & Algorithms•More Hudson River Trading•More Software Engineer•Hudson River Trading Software Engineer•Hudson River Trading Coding & Algorithms•Software Engineer Coding & Algorithms
PracHub

Master your tech interviews with 8,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.