• 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
mattdivs Avatar
Name:Ariel Ivanov
Clan:Unknown
Member Since:Sep 2022
Last Seen:Dec 2024
Profiles:
Following:0
Followers:0
Allies:0
View Profile Badges
Ad
8 Reasons Why Codewarriors Practice Coding with Codewars
Not everyone trains the same. Discover new ways to leverage Codewars in your education and career.
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (28)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • mattdivs
    • commented on "Rot13" rust solution
    • 6 months ago

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

  • Custom User Avatar
    • mattdivs
    • commented on "Double Char" rust solution
    • 6 months ago

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

  • Custom User Avatar
    • mattdivs
    • commented on "Reversed Strings" rust solution
    • 6 months ago

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

  • Custom User Avatar
    • mattdivs
    • commented on "Sum of the first nth term of Series" rust solution
    • 7 months ago

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

  • Custom User Avatar
    • mattdivs
    • commented on "Count by X" rust solution
    • 7 months ago

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

  • Custom User Avatar
    • mattdivs
    • commented on "Printer Errors" rust solution
    • 7 months ago

    The Unicode value 110 corresponds to the lowercase letter "n".
    so "n","o",...
    would be:
    (110+n)/110
    where n can be 0 to some number before pass 'z'

    But this is not recommended, since the bytes are not well represented as a unicode values.
    Because a unicode scalar value can be sometimes represented by more than 1 byte.
    Read the docs about indexing in String.
    https://doc.rust-lang.org/book/ch08-02-strings.html

  • Custom User Avatar
    • mattdivs
    • commented on "Categorize New Member" rust solution
    • 7 months ago

    Very clever, when the problem can further be grow if there is more conditions, and this code can grow with more combinations

  • Custom User Avatar
    • mattdivs
    • commented on "Beginner Series #1 School Paperwork" rust solution
    • 7 months ago

    thank you for your code. it was enlighning.
    Others just use as u32, but you make sure with try_into() to convert from i16 to u16.
    And it fails, because -10 cannot be represented in u16, you give a default value with unwrap_or(0).
    And it's safer than just use "as u32".
    And I didnt know much about safer conversion with ::from(<smaller_type>)

  • Custom User Avatar
    • mattdivs
    • commented on "Grasshopper - Grade book" rust solution
    • 7 months ago

    ahahahahah :)

  • Custom User Avatar
    • mattdivs
    • commented on "Convert number to reversed array of digits" rust solution
    • 7 months ago

    I didnt know that you can change the signature to "mut a:u64".
    Good solution!

  • Custom User Avatar
    • mattdivs
    • commented on "Is this a triangle?" python solution
    • 3 years ago

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

  • Custom User Avatar
    • mattdivs
    • commented on "Is this a triangle?" python solution
    • 3 years ago

    It's a clever solution, so you ask this:

    a+b <= c

    a+c <= b

    b+c <= a

    For that loop, but I think it would be better with a+c "<" b.

    Because, it's part of triangle existence theorem.

  • Custom User Avatar
    • mattdivs
    • commented on "Persistent Bugger." python solution
    • 3 years ago

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

  • Custom User Avatar
    • mattdivs
    • commented on "Persistent Bugger." python solution
    • 3 years ago

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

  • Custom User Avatar
    • mattdivs
    • commented on "Persistent Bugger." python solution
    • 3 years ago

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

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...