• 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
barnasm Avatar
Name:Unknown
Clan:Unknown
Member Since:Jun 2019
Last Seen:May 2025
Profiles:
    Following:1
    Followers:2
    Allies:1
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (20)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • ejini战神
      • resolved a suggestion on "Follow that Spy" kata
      • 2 years ago

      Approved by author

    • Custom User Avatar
      • barnasm
      • commented on ""Follow that Spy" C++ Translation"
      • 3 years ago

      yep, I should use const reference.

    • Custom User Avatar
      • hobovsky
      • commented on ""Follow that Spy" C++ Translation"
      • 3 years ago

      Prototype of find_routes looks a bit awkward (in both solution setup and example solution), is param sent by a const value deliberate? Did you mean const reference?

    • Custom User Avatar
      • barnasm
      • commented on ""Follow that Spy" C++ Translation"
      • 3 years ago

      Is this correction sufficient?

    • Custom User Avatar
      • alexbur
      • commented on ""How many pages in a book?" C++ Translation"
      • 3 years ago

      Rust tests were not ideal, and they've been fixed recently

    • Custom User Avatar
      • barnasm
      • commented on ""Follow that Spy" C++ Translation"
      • 3 years ago

      Thanks for review! I have fixed all mentioned problems. I agree that using pair is much better approach.

    • Custom User Avatar
      • hobovsky
      • commented on ""Follow that Spy" C++ Translation"
      • 3 years ago
      • missing some includes in most of snippets, for string and vector
      • unnecessary TODO note in full tests
      • regerence solution should not be global or public

      I think that pairs would be nicer as input that array<2>, what do you think?

    • Custom User Avatar
      • barnasm
      • commented on ""Make a spiral" C++ Translation"
      • 3 years ago

      Thank you for review and detailed description of all problems. I already fixed all mentioned points, please review changes.

    • Custom User Avatar
      • hobovsky
      • commented on ""Make a spiral" C++ Translation"
      • 3 years ago
      • includes are missing in all snippets: for std::vector, for std::pair, for random utilities
      • utilities from the random header should be preferred over rand
      • TODO note is unnecessary in full tests
      • helper functions should be ideally declared as static, or members of test suite
      • reference solution should not be accessible from global scope, ideally it should be made private or local to the test suite

      Please see C++ authoring docs for some hints on reported issues: https://docs.codewars.com/languages/cpp/authoring

    • Custom User Avatar
      • barnasm
      • created a suggestion for "Make a spiral" kata
      • 3 years ago

      C++ translation:
      https://www.codewars.com/kumite/6244bc2c58ad06006b64b094?sel=6244bc2c58ad06006b64b094

    • Custom User Avatar
      • barnasm
      • created a suggestion for "Follow that Spy" kata
      • 3 years ago

      C++ translation:
      https://www.codewars.com/kumite/62433060e2be22004f060552?sel=62433060e2be22004f060552

    • Custom User Avatar
      • barnasm
      • commented on ""How many pages in a book?" C++ Translation"
      • 3 years ago

      If Rust tests are fine then C++ tests are ok as well.

    • Custom User Avatar
      • alexbur
      • commented on ""How many pages in a book?" C++ Translation"
      • 3 years ago

      Are you sure the example tests work properly?

    • Custom User Avatar
      • barnasm
      • commented on ""How many pages in a book?" C++ Translation"
      • 3 years ago

      I'm really sorry for the problems, I have already fixed the issue, this was my first translation and I misunderstood how the tests are checked before publication.

      At Example Test Cases I have changed expected value (e.g. 5) into Equals(5), Hidden test cases were fine.

      Once again sorry for the problems.

    • Custom User Avatar
      • alexbur
      • commented on ""How many pages in a book?" C++ Translation"
      • 3 years ago

      Sir, there seems to be an issue with this translation. A warrior pointed out in discourse

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...