• 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
Discordanian Avatar
Name:Kurt Schwind
Clan:Tangential Cold Studios
Member Since:Sep 2018
Last Seen:Apr 2025
Profiles:
Following:4
Followers:4
Allies:3
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations
  • Replies (17)
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • Just4FunCoder
    • resolved an issue on "Decompose a number" kata
    • 7 months ago

    Rust:

    From the description:

    Where every ki > 1 and every ki is maximized ...

    The elements in the returned vector ($k_i$) must be strictly greater than 1.

    However, your vector does contain 1 at the end.

    Not a kata issue.

  • Custom User Avatar
    • Klannara
    • commented on "Thinkful - Number Drills: Blue and red marbles" rust solution
    • 17 months ago

    blue_pulled and red_pulled are always lower than the blue_start and red_start (as per problem definition).

  • Custom User Avatar
    • trashy_incel
    • commented on "A Letter's Best Friend" kata
    • 2 years ago

    the concept is called a vacuous truth. the tests are correct

  • Custom User Avatar
    • cplir-c
    • commented on "Thinkful - Number Drills: Blue and red marbles" rust solution
    • 2 years ago
    >> 1.0 / 0.0
    inf
    >> 0.0 / 0.0
    NaN
    

    according to evcxr, which is a rust REPL

  • Custom User Avatar
    • faruqi
    • commented on "A Letter's Best Friend" kata
    • 2 years ago

    lol i have the same problem like u bro
    like i don't even know why best_friend("jtekeh dek wbwclw gykc", "i", "h") should return True, even the string have no "i"

  • Custom User Avatar
    • Stefan30
    • commented on "Barista problem" kata
    • 2 years ago

    Thank you for the fix. Cheers!

  • Custom User Avatar
    • akar-0
    • resolved an issue on "Barista problem" kata
    • 2 years ago

    Fixed (the input type was not correct in initial code).

  • Custom User Avatar
    • lincot
    • commented on "Add Length" rust solution
    • 2 years ago

    nah, i wish ChatGPT could optimize like that

    just asked it to solve this and it produced the same solution as the most upvoted one

  • Custom User Avatar
    • Chrono79
    • commented on "Total increasing or decreasing numbers up to a power of 10" kata
    • 2 years ago

    With the first digit being 1 you have also ten numbers: 10, 11, 12, 13, 14, 15, 16, 17, 18, 19. And so on. Find me a number between 1 and 100 not being increasing, decreasing or both.

    To give you a starting point, there are a grand total of increasing and decreasing numbers as shown in the table:

    It doesn't say all numbers under 100 are increasing.

  • Custom User Avatar
    • vasiliev-alexey
    • commented on "Barista problem" kata
    • 2 years ago

    for rust, the tests should look like this

            assert_eq!(barista(vec![]), 0);
            assert_eq!(barista(vec![2, 10, 5, 3, 9]), 85);
            assert_eq!(barista(vec![4, 3, 2]), 22);
            assert_eq!(barista(vec![20, 5]), 32);
            assert_eq!(barista(vec![20, 5, 4, 3, 1, 5, 7, 8]), 211);
            assert_eq!(barista(vec![5, 4, 3, 2, 1]), 55);
    
  • Custom User Avatar
    • en-el-mar
    • commented on "Find the odd int" javascript solution
    • 2 years ago

    My thoughts exactly. While I ~loved it, imho it shouldn't be upvoted for 'Best Practice'

  • Custom User Avatar
    • Stefan30
    • commented on "Barista problem" kata
    • 3 years ago

    Hmm, thanks for reporting it. I am not familiar with Rust, maybe somebody else can help.

  • Custom User Avatar
    • Stonegrip
    • commented on "Don't give me five!" python solution
    • 3 years ago

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

  • Custom User Avatar
    • StephenDonovan1
    • commented on "Don't rely on luck." kata
    • 5 years ago

    It's a puzzle, I'd say it's pretty much anything goes. But you don't necessarily need to override anything, at least not in Python, my language of choice.

  • Custom User Avatar
    • FedericoLadereche
    • commented on "Return Negative" cpp solution
    • 7 years ago

    Well explained! Thanks for sharing your knowledge.

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...