Retired
Limit string length - 1 (retired)
5,327 of 7,336hakt
Description:
The function must return the truncated version of the given string up to the given limit followed by "..."
if the result is shorter than the original. Return the same string if nothing was truncated.
Example:
solution('Testing String', 3) --> 'Tes...'
solution('Testing String', 8) --> 'Testing ...'
solution('Test', 8) --> 'Test'
Fundamentals
Similar Kata:
Stats:
Created | Aug 12, 2013 |
Warriors Trained | 9287 |
Total Skips | 633 |
Total Code Submissions | 28948 |
Total Times Completed | 7336 |
JavaScript Completions | 5327 |
C# Completions | 311 |
Python Completions | 1437 |
Ruby Completions | 86 |
Rust Completions | 95 |
Total Stars | 30 |
% of votes with a positive feedback rating | 90% of 789 |
Total "Very Satisfied" Votes | 660 |
Total "Somewhat Satisfied" Votes | 104 |
Total "Not Satisfied" Votes | 25 |