Challenge: Determining the Number of Spaces per Indentation
Write code to implement a system to detect the most likely number of spaces per indentation level for arbitrary input.
We'll cover the following
Problem statement
Our IndentationManager
implementation currently relies on being supplied with a known number of spaces for each indentation level. Implement a system to detect the most likely number of spaces per indentation level for arbitrary input.
Get hands-on with 1400+ tech skills courses.