• 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
perfidiousscript Avatar
Name:Unknown
Clan:Unknown
Member Since:Aug 2015
Last Seen:Apr 2016
Profiles:
Following:3
Followers:4
Allies:3
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (15)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • fardemirbas
    • commented on "Is my friend cheating?" kata
    • 9 years ago

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

  • Custom User Avatar
    • hilary
    • commented on "Is my friend cheating?" kata
    • 10 years ago

    There's no special math you need to learn. You have a system of equations (sum and product) that you can manipulate to reduce the Big(O) of your algorithm. Not sure if that helps (without giving the answer away).

  • Custom User Avatar
    • khanhnguyenqk
    • commented on "Is my friend cheating?" kata
    • 10 years ago

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

  • Custom User Avatar
    • perfidiousscript
    • commented on "Is my friend cheating?" kata
    • 10 years ago

    This is a useless reply. I've downvoted it.

  • Custom User Avatar
    • user1621217
    • commented on "Is my friend cheating?" kata
    • 10 years ago

    The math and algebra behind the solution (at least the most popular and efficient solutions) are not so complicated.

  • Custom User Avatar
    • perfidiousscript
    • commented on "Is my friend cheating?" kata
    • 10 years ago

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

  • Custom User Avatar
    • perfidiousscript
    • resolved a question on "Complete The Pattern #12" kata
    • 10 years ago

    Thanks for the reply. I've since worked out the issue, it turned out one of my for loops was running too long or something.

    Good to note about the markdown though! Thanks for mentioning that!

  • Custom User Avatar
    • DivyanshBatham
    • commented on "Complete The Pattern #12" kata
    • 10 years ago

    On the side note always format your code using Markdown. An extract from Markdown link -

    The Codewars comment system allows for Markdown that follows GitHub Flavored Markdown, you can read about all the bells and whistles through the link.

  • Custom User Avatar
    • DivyanshBatham
    • commented on "Complete The Pattern #12" kata
    • 10 years ago

    Try using row = row.concat("\\n"); Instead of row = row.concat("\n");. Then check your output with the text fixture code manually.

  • Custom User Avatar
    • perfidiousscript
    • created a question for "Complete The Pattern #12" kata
    • 10 years ago

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

  • Custom User Avatar
    • perfidiousscript
    • commented on "Building blocks" kata
    • 10 years ago

    Great, this should help me. Thanks.

  • Custom User Avatar
    • ZozoFouchtra
    • commented on "Building blocks" kata
    • 10 years ago

    First test creates 2 blocks and asks for values of 1st one. Your error message Expected: 3, instead got: 1 indicates the 2d block you created crashed data of 1st one. (3 is value of 1st Block width, 1 is value of 2d Block width)

    So it seems the problem is with your code.
    Good luck!

  • Custom User Avatar
    • perfidiousscript
    • commented on "Building blocks" kata
    • 10 years ago

    javascript

  • Custom User Avatar
    • ZozoFouchtra
    • commented on "Building blocks" kata
    • 10 years ago

    which language ?

  • Custom User Avatar
    • perfidiousscript
    • commented on "Building blocks" kata
    • 10 years ago

    I'm having my code pass the test cases just fine but am getting caught up in the main submission with an (Expected: 3, instead got: 1) error. I tried changing around the 'data array' position that the various measures (width et c) were reading and got the first submission test to clear but then the second test was failing.

    Is this a problem with my code or in the submission tests?

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...