• 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
Insight Avatar
Name:Unknown
Clan:SWH-EW
Member Since:Jul 2018
Last Seen:Nov 2020
Profiles:
    Following:1
    Followers:1
    Allies:1
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (30)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • cwps
      • created a suggestion for "Round To Nearest" kata
      • 17 months ago

      PHP fork: Add random tests and other things.

    • Custom User Avatar
      • ejini战神
      • created an issue for "Round To Nearest" kata
      • 2 years ago

      Description should be language-agnostic

    • Custom User Avatar
      • ejini战神
      • created an issue for "Round To Nearest" kata
      • 2 years ago

      No random tests in PHP

    • Custom User Avatar
      • Jkbjzl
      • commented on "Round To Nearest" kata
      • 2 years ago

      If the result is an array with two elements, they need be in the same order as they appear in the input. Otherwise, it seems the tests will not pass.

    • Custom User Avatar
      • dfhwze
      • resolved an issue on "Round To Nearest" kata
      • 2 years ago

      Your solution is not correct (read the description, you are not doing what is requested). The C# translation is fine.

    • Custom User Avatar
      • dfhwze
      • commented on "Round To Nearest" kata
      • 2 years ago

      fixed

    • Custom User Avatar
      • dfhwze
      • resolved an issue on "Round To Nearest" kata
      • 2 years ago

      fixed

    • Custom User Avatar
      • qrt88
      • commented on "Round To Nearest" kata
      • 4 years ago

      Came back to this one after a month.
      Tried to print the inputs this time and this is what I've got:

      // This is what it looks like for every test except random
      Number: 1
      Array: -32
      Array: 12
      Array: 8
      Array: -10
      Array: -2
      Array: 4

      It prints the target number and the numbers in the array. As expected.

      // This is for the random test
      Number: -862
      Number: -862
      Array: -862

      Seems like it's giving two target numbers and an array containing only one number.

    • Custom User Avatar
      • qrt88
      • created an issue for "Round To Nearest" kata
      • 4 years ago

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

    • Custom User Avatar
      • lbvf50mobile
      • created an issue for "Round To Nearest" kata
      • 5 years ago

      In PHP predefined code need to rename Kata class. Because in tests another class name is used.

    • Custom User Avatar
      • lbvf50mobile
      • commented on "Round To Nearest" kata
      • 5 years ago

      To eliminate this error need to rename Kata class to RoundToNearest class. Tests applies to anouther class name, not Kata.

    • Custom User Avatar
      • Nikolasha
      • commented on "Round To Nearest" kata
      • 5 years ago

      Why did I get this mistake?
      Error: Class 'RoundToNearest' not found?

    • Custom User Avatar
      • dlcoe
      • commented on "Round To Nearest" kata
      • 7 years ago

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

    • Custom User Avatar
      • nojlynokep
      • commented on "Round To Nearest" kata
      • 7 years ago

      Can`t pass RandomGeneratedTests
      Expected is System.Int32[1],
      actual is System.Int32[0]
      Values differ at index [0]
      Missing: < -734 >
      what input values?

    • Custom User Avatar
      • hobovsky
      • resolved an issue on "Round To Nearest" kata
      • 7 years ago

      Resolved.

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...