• 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
ecocode Avatar
Name:Unknown
Clan:Founders & Coders
Member Since:Sep 2015
Last Seen:Apr 2020
Profiles:
Following:188
Followers:181
Allies:179
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations
  • Replies (20)
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • JohnHaas
    • commented on "Count IP Addresses" kata
    • 4 years ago

    this might be helpful, read the first bit of this page:
    https://www.ibm.com/docs/en/ts3500-tape-library?topic=functionality-ipv4-ipv6-address-formats

  • Custom User Avatar
    • user6793616
    • commented on "Add commas to a number" kata
    • 7 years ago

    Two years later I have the same comment to make. It is contrary to how built-in functions round decimals.

  • Custom User Avatar
    • MichaelSel
    • commented on "Point in Polygon" kata
    • 8 years ago

    I am having the same issue, see my post above with an attached image

  • Custom User Avatar
    • prad2205
    • commented on "Count IP Addresses" kata
    • 9 years ago

    You have to return number of possible IP based on the provided range

  • Custom User Avatar
    • iamchingel
    • commented on "Count IP Addresses" kata
    • 9 years ago

    Hello there, I know the reply is pretty late, but if you are still interested in solving the question...
    Let me break it down for you...

    //original IP address
    192.168.1.1
    
    //breaks down into 4 binary octets
    11000000 . 10101000 . 00000001 . 00000001
    
    //which are merged together (unsigned 32-bit binary)
    11000000101010000000000100000001
    
    //and finally converted to base 10
    3232235777
    

    now you can find the difference!

  • Custom User Avatar
    • osuushi
    • resolved an issue on "Point in Polygon" kata
    • 9 years ago

    Great, marking this as resolved then.

  • Custom User Avatar
    • LeatherGreenGargoyle
    • commented on "Tortoise racing" kata
    • 9 years ago

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

  • Custom User Avatar
    • SKolevatov
    • commented on "Point in Polygon" kata
    • 9 years ago

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

  • Custom User Avatar
    • osuushi
    • commented on "Point in Polygon" kata
    • 9 years ago

    What browser are you using? These are rendered with SVG, and it's possible that your browser is drawing them incorrectly. In the second test case, the point is well inside the square, and in the fourt test case, it is well outside the square. In the sixth test case, the point is very much inside the triangle.

    I've checked this in Chrome, Firefox, and Safari, and in all three browsers, it renders correctly.

  • Custom User Avatar
    • SKolevatov
    • commented on "Point in Polygon" kata
    • 9 years ago

    Please, check JS. 2nd & 4th tests - point lies on the border. 6th test - point is obviously outside.

  • Custom User Avatar
    • osuushi
    • commented on "Point in Polygon" kata
    • 9 years ago

    Which language? I checked JS, CoffeeScript, and Haskell. In each, the third test expects the point to be outside.

  • Custom User Avatar
    • matt c
    • commented on "Bracket Duplicates" kata
    • 9 years ago

    this is because the object you are trying to split does not have that method in the prototype, so it's not a string. you may need to check your types before trying to use split.

  • Custom User Avatar
    • jmeek
    • commented on "Sum of Pairs" kata
    • 9 years ago

    array[-1] returns undefined

  • Custom User Avatar
    • GiacomoSorbi
    • commented on "Next bigger number with the same digits" kata
    • 10 years ago

    Glad you liked it :)

  • Custom User Avatar
    • georgevs
    • commented on "Sum of Pairs" kata
    • 10 years ago

    How does the first check even pass?... you are accessing ints[-1]... apparently JavaScript does not have a problem with that :)

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...