• 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
Hackito Avatar
Name:Nikita
Clan:Unknown
Skills:javascript, python
Member Since:Jan 2017
Last Seen:Mar 2024
Profiles:
Following:3
Followers:2
Allies:1
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations
  • Replies
  • Authored (8)
  • Needs Resolution
  • Custom User Avatar
    • Hackito
    • commented on "Number of trailing zeros of N!" javascript solution
    • 7 years ago

    The best solution I have ever seen.

  • Custom User Avatar
    • Hackito
    • commented on "Number of Proper Fractions with Denominator d" kata
    • 8 years ago

    I attempt 9 tests for 1.7 seconds. Here are they:

    test.assert_equals(proper_fractions(1), 0)

    test.assert_equals(proper_fractions(2), 1)

    test.assert_equals(proper_fractions(40), 16)

    test.assert_equals(proper_fractions(13), 12)

    test.assert_equals(proper_fractions(25), 20)

    test.assert_equals(proper_fractions(15), 8)

    test.assert_equals(proper_fractions(1532420), 608256)

    test.assert_equals(proper_fractions(500000003), 500000002)

    test.assert_equals(proper_fractions(9999999), 6637344)

    P.S. Can I know how many tests are there?

  • Custom User Avatar
    • Hackito
    • commented on "Number of Proper Fractions with Denominator d" kata
    • 8 years ago

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

  • Custom User Avatar
    • Hackito
    • resolved an issue on "Rotate matrix against clockwise N - times!" kata
    • 8 years ago

    Already fixed.

  • Custom User Avatar
    • Hackito
    • created a question for "Mean Means" kata
    • 8 years ago

    Python:
    I can't figure out why this is True:
    Test.assert_equals(geo_mean([1, 2], 3), 2.2894284851066637)
    The missing number is 6, because (1+2 + X) / 3 = 3;
    X = 6
    So, the answer is sqrt(6 * 2) ~ 3.464

    Any help?

  • Custom User Avatar
    • Hackito
    • commented on "Reverse matrix against clockwise N - times!" kata
    • 8 years ago

    Thanks for comment. I will correct it.

  • Custom User Avatar
    • Hackito
    • commented on "Rotate matrix against clockwise N - times!" kata
    • 8 years ago

    Thank you so much! I have done random tests.

  • Custom User Avatar
    • Hackito
    • commented on "Python Test Reference" doc
    • 8 years ago

    Hello coders.
    I would like my kata had some random test cases. But I don't know how to do them. Could you please send me a code for these tests?
    Here is the kata:https://www.codewars.com/kata/5919f3bf6589022915000023
    Language is Python 3.4

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...