Truncate the Text 2 (daily coding challenge)

In this table

Letters Width
"ilI" 1
"fjrt" 2
"abcdeghkmnopqrstuvwxyzJL" 3
"ABCDEFGHKMNOPQRSTUVWXYZ" 4

The letters rt appear twice and the description says “Each character has a specific width”

Also, it says “does not exceed 50 units” later “close as possible to 60 units without going over.”

These instructions are not clear. Even the solution in the source code ignores the 60.

https://www.freecodecamp.org/learn/daily-coding-challenge/2026-03-27

4 Likes

Thank you for helping make FCC better. Bugs can be reported as GitHub Issues. Whenever reporting a bug, please check first that there isn’t already an issue for it and provide as much detail as possible.

It’s reported here issue 66646

It’s quite a mess that the challenge apparently has 3 typos, including one in test case 2, people have to guess what are really required.

I understand the frustration but we need to understand that it’s free and require everyone’s effort to make it better.. After a few minutes of reading the question I quickly understood the issue and provided the code which was successfully accepted..

You might have well explained it here.