• Sign Up
    Time to claim your honor
  • Training
  • Practice
    Complete challenging Kata to earn honor and ranks. Re-train to hone technique
  • Freestyle Sparring
    Take turns remixing and refactoring others code through Kumite
  • Community
  • Leaderboards
    Achieve honor and move up the global leaderboards
  • Chat
    Join our Discord server and chat with your fellow code warriors
  • Discussions
    View our Github Discussions board to discuss general Codewars topics
  • About
  • Docs
    Learn about all of the different aspects of Codewars
  • Blog
    Read the latest news from Codewars and the community
  • Log In
  • Sign Up
jonbstrong Avatar
Name:Jonathan Baillie Strong
Clan:Founders & Coders
Member Since:May 2015
Last Seen:Jan 2019
Profiles:
Following:248
Followers:232
Allies:230
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (147)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • Dess1996
    • commented on "Trimming a string" kata
    • 2 years ago

    Pretty unclearing description

  • Custom User Avatar
    • Argile5
    • commented on "Trimming a string" kata
    • 2 years ago

    ok thanks

  • Custom User Avatar
    • Chrono79
    • commented on "Trimming a string" kata
    • 2 years ago

    If the requested string length is smaller than or equal to 3 characters, then the length of the dots is not added to the string length.

    e.g. trim("He", 1) should return "H...", because 1 <= 3

    It's already there and with an example. What is it that confuses you?

  • Custom User Avatar
    • Argile5
    • commented on "Trimming a string" kata
    • 2 years ago

    description needs to be clearer about the max length if size is 3 or less!
    i.e. if size is 3 or less then total size does not have to count the '...' added to the end

  • Custom User Avatar
    • acekuria
    • commented on "Trimming a string" kata
    • 2 years ago

    Exactly, horrible description

  • Custom User Avatar
    • BRMonte
    • commented on "Trimming a string" kata
    • 2 years ago

    very confusing

  • Custom User Avatar
    • ejini战神
    • resolved a suggestion on "Trimming a string" kata
    • 2 years ago

    Approved by someone

  • Custom User Avatar
    • Chrono79
    • resolved an issue on "Trimming a string" kata
    • 2 years ago

    If the string is smaller or equal than the maximum string length, then simply return the string with no trimming or dots required.

    A problem with your code is not a kata issue. It fails a random number of random tests.

  • Custom User Avatar
    • yadvorov
    • created an issue for "Trimming a string" kata
    • 2 years ago

    Every time when i try to attemt my code, tests will give different amount of mistakes.
    And my solution is working in VS Code, for all tests which this kata has
    Could you explain me, what the problem?

  • Custom User Avatar
    • Antonio_B
    • commented on "Trimming a string" kata
    • 2 years ago

    a trick assignment. The combination of condition about string length <=3 and the example is confusing!

  • Custom User Avatar
    • LosBlobbos
    • created a suggestion for "Trimming a string" kata
    • 2 years ago

    Java translation.

  • Custom User Avatar
    • SeregaIlyakov
    • commented on "Trimming a string" kata
    • 2 years ago

    Very bad description, spent a time to understand what was meant to do. After realising, finished it very fast.

  • Custom User Avatar
    • Awesome A.D.
    • resolved a suggestion on "Trimming a string" kata
    • 2 years ago

    approved

  • Custom User Avatar
    • hobovsky
    • resolved a suggestion on "Trimming a string" kata
    • 2 years ago

    .

  • Custom User Avatar
    • hobovsky
    • resolved a suggestion on "Trimming a string" kata
    • 2 years ago

    This kata was decided to stay.

  • Loading more items...
  • © 2025 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Code of Conduct
  • Contact

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...