• 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
Ruslan-dev-Free-Fire Avatar
Name:ルスラン ブドビキン
Clan:Unknown
Member Since:Sep 2023
Last Seen:Oct 2023
Profiles:
Following:0
Followers:0
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (10)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • Ruslan-dev-Free-Fire
    • created a suggestion for "Max number of people and year in a specific place" kata
    • 2 years ago

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

  • Custom User Avatar
    • Ruslan-dev-Free-Fire
    • commented on "Approximate solution of differential equation with Runge-Kutta 4" kata
    • 2 years ago

    The generator solution is relevant at least for JavaScript and Python. Perhaps even the "java.util.Iterator" interface would be suitable, from
    Java that allows you to create iterators for lazy data processing.

  • Custom User Avatar
    • akar-0
    • commented on "Approximate solution of differential equation with Runge-Kutta 4" kata
    • 2 years ago

    For which languages? Generatora are not native in many of them.

  • Custom User Avatar
    • Ruslan-dev-Free-Fire
    • created a suggestion for "Approximate solution of differential equation with Runge-Kutta 4" kata
    • 2 years ago

    I would prefer to implement the function as a generator, which would allow you to avoid storing all y values in memory and reduce memory consumption when working with large ranges.
    The RK4 function does not exit, but saves its state, allowing you to continue obtaining y values in the loop.

    yield y  # Return the value of y as a generator
    
  • Custom User Avatar
    • dfhwze
    • commented on "Pandas Series 103: Filter Rows From DataFrames That Don't Satisfy Condition" kata
    • 2 years ago

    Who votes 2 kyu here, this can't be in good faith :/

  • Custom User Avatar
    • Ruslan-dev-Free-Fire
    • created a suggestion for "Sum and Product of Three Numbers" kata
    • 2 years ago

    It would be worthwhile to include handling of edge cases at the beginning of the solution. You need to make sure that the function handles edge cases correctly, such as when a or b is 1.

    An example of handling edge cases:

    def number_of_sets(a, b):

    if a == 1 and b == 1:
    
        return 1 # Case (1, 1, 1) satisfies the conditions
    
  • Custom User Avatar
    • Ruslan-dev-Free-Fire
    • commented on "Pandas Series 103: Filter Rows From DataFrames That Don't Satisfy Condition" kata
    • 2 years ago

    This kata does not describe how to handle cases where the target column does not exist in the DataFrame. Adding a check for the presence of a column and an associated error message would improve the feature.

    Overall, the challenge provides a good starting point for practicing working with the pandas library and filtering data in a DataFrame, but some additional detail and testing could make it more complete.

  • Custom User Avatar
    • Blind4Basics
    • commented on "Queens and Kings Stable Marriages" kata
    • 2 years ago

    are you sure you're returning an array of appropriate size? (I bet not).

  • Custom User Avatar
    • Blind4Basics
    • resolved an issue on "Queens and Kings Stable Marriages" kata
    • 2 years ago

    not an issue: this just means your solution doesn't handle all cases.

    edit: on the other hand, if you can extract the exact kind of input that makes fail your code, maybe it can be interesting to add it as fixed test.

  • Custom User Avatar
    • Ruslan-dev-Free-Fire
    • created an issue for "Queens and Kings Stable Marriages" kata
    • 2 years ago

    After completing a kata and attempting to confirm the completion, I received the following error:

    java.lang.AssertionError

    at org.junit.Assert.fail(Assert.java:87)
    at org.junit.Assert.assertTrue(Assert.java:42)
    at org.junit.Assert.assertTrue(Assert.java:53)
    at QueensAndKingsTest.testBestMatchBigRandom(QueensAndKingsTest.java:136)(...)
    

    This error occurred when I was trying to confirm the completion of the kata. It appears to be related to a test case in the "QueensAndKingsTest" class, specifically in the "testBestMatchBigRandom" method.

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...