• 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
Thuringud Avatar
Name:Roman
Clan:osanwe
Member Since:Oct 2021
Last Seen:Aug 2024
Profiles:
Following:8
Followers:8
Allies:8
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (21)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • MSKose
    • commented on "+1 Array" javascript solution
    • 2 years ago

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

  • Custom User Avatar
    • BrownieCoder
    • commented on "Maximum Length Difference" kata
    • 3 years ago

    For those are confused by instruction

    1. its asking for the largest difference of length of smallest number from array 1 compare to largest array 2
    2. then you need to find the largest length of largest number from array 1 compare to smallet array 2
    3. result must be the biggest one
  • Custom User Avatar
    • zLuki
    • commented on "Last digit of a large number" kata
    • 3 years ago

    done

  • Custom User Avatar
    • Shady1k
    • commented on "Friend or Foe?" javascript solution
    • 3 years ago

    Because the author doesn't mention it and everyone is lazy pretty much

  • Custom User Avatar
    • Thuringud
    • commented on "Alphabetized" kata
    • 3 years ago

    The kata was more difficult than it seemed at first sight. Thanks for the interesting experience.

  • Custom User Avatar
    • Chrono79
    • created an issue for "Lottery Ticket" kata
    • 3 years ago

    The user can mutate the input affecting the expected value at least in javascript. Calculate the expected value before calling the user's function.

  • Custom User Avatar
    • Chrono79
    • resolved a question on "Lottery Ticket" kata
    • 3 years ago

    Probably that's because that solution mutates the input, affecting the expected value.

  • Custom User Avatar
    • Thuringud
    • commented on "Lottery Ticket" kata
    • 3 years ago

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

  • Custom User Avatar
    • Chrono79
    • commented on "Lottery Ticket" kata
    • 3 years ago

    Post your code that fails: https://docs.codewars.com/training/troubleshooting#post-discourse so it can be checked.

  • Custom User Avatar
    • Thuringud
    • commented on "Lottery Ticket" kata
    • 3 years ago

    I used a different implementation of the solution. In IDE the function returns the same "Winner!" but test message: "Expected: 'Loser!', instead got: 'Winner!'"

    The input data above should return'Winner!'

    1. I get a failed test with message: "Expected: 'Loser!', instead got: 'Winner!'"
    2. I copy the printed input data.
    3. My code in IDE returns 'Winner!'
  • Custom User Avatar
    • Chrono79
    • commented on "Lottery Ticket" kata
    • 3 years ago

    No idea what you're doing but, you passed the kata and with your current code I can't reproduce that error. The control function returns "Winner!" for that input too. You can see that for yourself.

  • Custom User Avatar
    • Thuringud
    • created a question for "Lottery Ticket" kata
    • 3 years ago

    Random tests

    Testing for DSYLTWUI,87,TQDV,79,MKUVZJN,77,JGICV,87 and 1

    Log

    [ [ 'DSYLTWUI', 87 ],

    [ 'TQDV', 79 ],

    [ 'MKUVZJN', 77 ],

    [ 'JGICV', 87 ] ] 1

    It should work for random inputs too - Expected: 'Loser!', instead got: 'Winner!'

    Why 'Loser!'?

  • Custom User Avatar
    • Thuringud
    • commented on "Which are in?" javascript solution
    • 3 years ago

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

  • Custom User Avatar
    • Thuringud
    • commented on "Last digit of a large number" kata
    • 3 years ago

    This kata should have a "Mathematics" tag :-)

  • Custom User Avatar
    • Thuringud
    • commented on "Friend or Foe?" javascript solution
    • 3 years ago

    In any case, the code above can give a name consisting of 4 digits.

    Numbers in the basic tests:
    assert.deepEqual(friend(["Ryan", "Jimmy", "123", "4", "Cool Man"]), ["Ryan"])

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...