Loading...

The Vocabulary Test

A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
medium
Seniority
mid, senior

Problem

A spell-check system needs to determine whether a given phrase can be entirely constructed from a known vocabulary list. Given a string and a list of known words, return True if the string can be segmented into a space-separated sequence of one or more dictionary words. Words may be reused.

Practice This Problem

Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.