• 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
Eruner Avatar
Name:Eruner
Clan:Unknown
Member Since:Oct 2018
Last Seen:Nov 2021
Profiles:
Following:0
Followers:1
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations
  • Replies (10)
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • laurelis24
    • commented on "Naughty or Nice?" javascript solution
    • 3 years ago

    I actually disagree.

  • Custom User Avatar
    • Spaceman31415
    • commented on "Easy Line" kata
    • 5 years ago

    I know, you have probably solved this Kata. Moreover there are already answers in comments, but anyway...
    2**n this is the for the sum of binominal coefs, but there is another formula for sum of squares.

  • Custom User Avatar
    • Madjosz
    • commented on "Easy Line" kata
    • 6 years ago

    Please read again: "sum of the SQUARES of the binomial coefficients on a given line"
    The sum of the (unsquared) binomial coefficients is 2^n.

  • Custom User Avatar
    • Kees de Vreugd
    • commented on "Easy Line" kata
    • 6 years ago

    Same here. Based on this description and the expected outcome of the examples, I haven't got a clue what to add up.
    I'm a mathematician, mind you.

  • Custom User Avatar
    • g964
    • resolved an issue on "Easy Line" kata
    • 6 years ago

    Did you read the description?

    Note:
    In Javascript, Coffeescript, Typescript, C++, PHP, C, R, Nim, Fortran to get around the fact that we have no big integers the function easyLine(n) will in fact return
    
    round(log(easyline(n)))
    
    and not the easyline(n) of the other languages.
    
    So, in Javascript, Coffeescript, Typescript, C++, PHP, R, Nim, C, Fortran:
    
    easyLine(0) => 0
    easyLine(1) => 1
    easyLine(4) => 4
    easyLine(50) => 67
    

    (at the bottom of description)

  • Custom User Avatar
    • mtngrown
    • commented on "Subtract the Sum" kata
    • 6 years ago

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

  • Custom User Avatar
    • Sebscrm
    • commented on "Grasshopper - Shopping list" javascript solution
    • 6 years ago

    I agree on this one!

  • Custom User Avatar
    • JohanWiltink
    • commented on "See You Next Happy Year " javascript solution
    • 6 years ago

    And then there's this one. :D

    And I may or may not have done something similar with coffee, but that's an even more hazy memory.

    ETA: coffee!!

  • Custom User Avatar
    • JohanWiltink
    • commented on "See You Next Happy Year " javascript solution
    • 6 years ago

    Plain JavaScript

    Did you scroll all the way to the right?

  • Custom User Avatar
    • Voile
    • commented on "Fix your code before the garden dies! " javascript solution
    • 7 years ago

    Usually I'd suggest to write the return in the same line after the if instead to better indicate it's an if body that is valid for one line only. Never forget that goto fail bug ;-)

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...