Loading...
Max Length Token
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
Problem
Column profiling needs the longest token in a text field to set varchar length constraints. Return the longest whitespace-separated word in the string. If two words tie, return the first one.
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.