• 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
Kedaci Avatar
Name:Musa Fernanda
Clan:Web Programming UNPAS
Skills:c, c++, python, rust
Member Since:Feb 2023
Last Seen:Sep 2023
Profiles:
Following:1,513
Followers:1,517
Allies:1,513
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (12)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • Digit365Stake
    • commented on "String Split" kumite
    • 6 months ago

    While the current tests are comprehensive, the following could add even more robustness:

    Empty String:

    Test splitting an empty string: split("", ' ').
    Expected result (strip = false): {""}.
    Expected result (strip = true): {}.
    Single Character Input:

    split("a", ' ') should return {"a"}.
    split("-", '-') should return {"", ""} for strip = false and {} for strip = true.
    Buffer Size:

    Verify behavior with long tokens exceeding BUFFER_SIZE to ensure correct truncation.
    Example: split(std::string(70, 'a') + ",b", ',', false).
    Non-Printable Delimiters:

    Test with special characters like \t (tab) or \n (newline).

  • Custom User Avatar
    • rowcased
    • commented on "String Split" kumite
    • 9 months ago

    using string as a parameter name is bad practice because it overwrites the string module

  • Custom User Avatar
    • pearcebasmanm
    • commented on "String Split" kumite
    • 9 months ago

    Ah, we've gone full circle now.

  • Custom User Avatar
    • smir-ant
    • commented on "Beginner Series #3 Sum of Numbers" rust solution
    • 12 months ago

    magic

  • Custom User Avatar
    • eurydice5717
    • commented on "Digest word into letters (C++ Translation)" kumite
    • 2 years ago

    :-) note the fmt::join up there is IMHO canonical in the 21rst century..
    Know your STL and get rid of those for loops.

  • Custom User Avatar
    • eurydice5717
    • commented on "Digest word into letters (C++ Translation)" kumite
    • 2 years ago

    YEEEAAHHHHHH this one is excellent!!!
    For F... Sake YOU SURE KNOW YOUR STL!!

    As for me... I'm tired of typing "fmt/ranges" as well as "rangeV3/anyalgo" ... when using format or ranges or views... Keep to C++17
    We need a C++20 compilant compiler there !!

  • Custom User Avatar
    • televisionia
    • commented on "Digest word into letters (C++ Translation)" kumite
    • 2 years ago

    Finally, the universal C++ solution after 16 months of the original kumite. (15 months since my C++ translation.)

  • Custom User Avatar
    • Kedaci
    • commented on "Find the smallest integer in the array" cpp solution
    • 2 years ago

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar
    • Kedaci
    • commented on "Fibonacci, Tribonacci and friends" cpp solution
    • 2 years ago

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar
    • Kedaci
    • commented on "chmod calculator in octal." c solution
    • 2 years ago

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar
    • Kedaci
    • commented on "Human readable duration format" cpp solution
    • 2 years ago

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar
    • Kedaci
    • commented on "Roman Numerals Helper" cpp solution
    • 2 years ago

    This comment is hidden because it contains spoiler information about the solution

  • © 2025 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Code of Conduct
  • Contact

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...