• 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
nimou Avatar
Name:Unknown
Clan:Unknown
Member Since:Mar 2015
Last Seen:May 2024
Profiles:
    Following:0
    Followers:2
    Allies:0
    View Profile Badges
    Ad
    How many Kata did you complete in 2024?
    Discover our top moments in 2024 and how you can level up in 2025.
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (93)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • ejini战神
      • commented on ""Help Bob count letters and digits." Java Translation"
      • 3 months ago

      Fork which made following changes:

      • Scrutinized tests with annotations for order and name display

      • Added useful assertion messages

      • Modified author and reference solution to be different

      • Added more fixed and sample tests (also the edge case for empty string)

      • Updated to Java 17.0

      • Made description in its original form

    • Custom User Avatar
      • OleksandrObydalo
      • commented on "Grasshopper - Summation" java solution
      • 9 months ago

      Using algebraic progression is cool!

    • Custom User Avatar
      • Peko-neko
      • commented on "Grasshopper - Summation" java solution
      • 12 months ago

      This is why math is important for programming!

    • Custom User Avatar
      • KK17
      • commented on "Grasshopper - Summation" java solution
      • 14 months ago

      writing loops only to realise could've done just simple maths

    • Custom User Avatar
      • Pinedah
      • commented on "Grasshopper - Summation" java solution
      • 16 months ago

      Gauss would be proud! What a code.

    • Custom User Avatar
      • bossturkmen
      • commented on "Grasshopper - Summation" java solution
      • 17 months ago

      nice choose

    • Custom User Avatar
      • ClemerJunior
      • commented on "Grasshopper - Summation" java solution
      • 2 years ago

      Beautiful solution!

      Congrats!

    • Custom User Avatar
      • pschuetze
      • commented on "Grasshopper - Summation" java solution
      • 3 years ago

      The main idea here is to implement an efficient algorithm and that is to use the formula above. If the kata author really wanted to teach you the use of loops, the author would have passed in a list of numbers.

      In my line of work I see way too many bindly implemented algorithms where the implementer does not worry about performance of the algorithm. I honestly think that performance of algorithms need to be taught (again), especially with big data (read: small improvements have big effects) and cloud computing (you pay per CPU time used)

    • Custom User Avatar
      • pschuetze
      • commented on "Grasshopper - Summation" java solution
      • 3 years ago

      I think it was in math class at middle school. I think the main idea here is to check if you can find a formula before blindly implementing an algorithm. In this case google "sum of sequence of numbers" and here is the story we were told in class https://letstalkscience.ca/educational-resources/backgrounders/gauss-summation.

    • Custom User Avatar
      • MinuSifu
      • commented on "Grasshopper - Summation" java solution
      • 3 years ago

      On my second Kata here writing while loops, and Ninjas are writing arm architecture. Very nice, inspiring.

    • Custom User Avatar
      • ZloiBess
      • commented on "Grasshopper - Summation" java solution
      • 3 years ago

      elegantly _

    • Custom User Avatar
      • Hyakume1
      • commented on "Grasshopper - Summation" java solution
      • 3 years ago

      nice use of calculus, didn't even think of that! ultimately i think that even tho using intStream is more legible and makes it easier to understand, this is a much more elegant solution.

    • Custom User Avatar
      • Thada
      • commented on "Grasshopper - Summation" java solution
      • 3 years ago

      I learned this formula in my Math class recently. Look up Sigma notation.

    • Custom User Avatar
      • dartorrejon
      • commented on "Grasshopper - Summation" java solution
      • 3 years ago

      I'm learning maths too thx =)

    • Custom User Avatar
      • taao84
      • commented on "Grasshopper - Summation" java solution
      • 3 years ago

      You know your Series buddy. Excellent solution I guess that could be the difference between a programmer and an Engineer.

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...