• 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
dmercertaylor Avatar
Name:David Mercer-Taylor
Clan:Prime Digital Academy
Member Since:Sep 2019
Last Seen:Mar 2025
Profiles:
Following:80
Followers:87
Allies:80
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (185)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • Mukhorin
    • commented on "Reverse Inside Parentheses (Inside Parentheses)" kata
    • 5 months ago

    Thanks a lot!

  • Custom User Avatar
    • Marc_C
    • commented on "Count IP Addresses" c solution
    • 11 months ago

    They are useless :
    #include <sys/socket.h>
    #include <netinet/in.h>

    enough : #include <arpa/inet.h>

  • Custom User Avatar
    • m_mistroni
    • commented on "Reverse Inside Parentheses (Inside Parentheses)" kata
    • 15 months ago

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

  • Custom User Avatar
    • besterboris
    • commented on "Reverse Inside Parentheses (Inside Parentheses)" kata
    • 15 months ago

    You can rename the predefined class to Kata and you should be able to submit your solution (if it's correct). But the author should rework his template.

  • Custom User Avatar
    • Mukhorin
    • created a question for "Reverse Inside Parentheses (Inside Parentheses)" kata
    • 15 months ago

    Greetings everyone! Can anyone help understand the error?

    symbol: variable Kata

    location: class SolutionTest

    src/test/java/SolutionTest.java:11: error: cannot find symbol

      assertEquals("a (b c (d e))", Kata.reverseParens("a ((d e) c b)"));
                                    ^
    

    In IntlijIdea, I get the right results.

  • Custom User Avatar
    • ejini战神
    • created an issue for "Reverse Inside Parentheses (Inside Parentheses)" kata
    • 15 months ago

    Apparantly not, description needs to be language-agnostic (the removal of function name from the example)

  • Custom User Avatar
    • Mednoob
    • resolved an issue on "Reverse Inside Parentheses (Inside Parentheses)" kata
    • 15 months ago

    Fixed

  • Custom User Avatar
    • dfhwze
    • resolved an issue on "Reverse Inside Parentheses (Inside Parentheses)" kata
    • 15 months ago

    fixed by fork above

  • Custom User Avatar
    • dfhwze
    • resolved a suggestion on "Reverse Inside Parentheses (Inside Parentheses)" kata
    • 15 months ago
  • Custom User Avatar
    • Mednoob
    • created a suggestion for "Reverse Inside Parentheses (Inside Parentheses)" kata
    • 15 months ago

    Javascript Fix

    • Node v18 enabled
    • Assertion using chai
    • Re-created the random tests
    • Made the code block in the description language-agnostic (by only using js code block)
    • Turns out the ref sol failed to handle when the start of the string is blank parentheses. For example, "()abc(a)def". The ref sol returned "(a)cba()def" instead of the same string. So, ref sol is changed and also added cases like these into edge case.
  • Custom User Avatar
    • JohanWiltink
    • commented on "Reverse Inside Parentheses (Inside Parentheses)" kata
    • 15 months ago

    This is a better place for it.

    Random generators and fixed tests should then be updated to include empty strings in all languages.

  • Custom User Avatar
    • JohanWiltink
    • commented on "Reverse Inside Parentheses (Inside Parentheses)" kata
    • 15 months ago

    I think the random generator won't generate empty parens in JS either ( and in Haskell, and possibly in other langauges ).

    If the spec is extended to specifically allow empty parens ( which is a good idea! ), the random generators should be checked and possibly updated in all languages.

  • Custom User Avatar
    • Awesome A.D.
    • commented on "Reverse Inside Parentheses (Inside Parentheses)" kata
    • 15 months ago

    I didn't want to have to write a custom test function for the sample tests which would have turned out longer than the tests, making it less readable for little gain.

    Python tests usually don't need custom assertion messages for non-white kata, since users are expected to know they can print their own inputs if they need them.

  • Custom User Avatar
    • ejini战神
    • commented on "Reverse Inside Parentheses (Inside Parentheses)" kata
    • 15 months ago

    That was quick! Initially there were no assertion messages (that is what I was referring to). BTW, I see you've used test.expect instead of test.assert_equals (used in sample tests), though the output differs not much, but maybe it would be wise to unify them (use either one of them and not both)

  • Custom User Avatar
    • Awesome A.D.
    • resolved an issue on "Reverse Inside Parentheses (Inside Parentheses)" kata
    • 15 months ago

    Fixed.

    Though I don't know what you mean by useful assertion messages. Python's assertions are quite unambiguous, if perhaps badly formatted for long outputs. Anyway, fixed that too.

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...