• 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
byteflux Avatar
Name:Robert
Clan:Coding Blocks
Member Since:Aug 2017
Last Seen:May 2025
Profiles:
Following:237
Followers:233
Allies:233
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (33)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • Ele-CSharp
    • commented on "Calculate BMI" csharp solution
    • 9 months ago

    if ( bmi <= 18.5 ) will return a value thus none of the following statements will be checked.

  • Custom User Avatar
    • BvssoTheDeveloper
    • commented on "Calculate BMI" csharp solution
    • 17 months ago

    oh ye you are right my bad.

  • Custom User Avatar
    • rowcased
    • commented on "Calculate BMI" csharp solution
    • 17 months ago

    impossible

  • Custom User Avatar
    • BvssoTheDeveloper
    • commented on "Calculate BMI" csharp solution
    • 17 months ago

    This won't actuall work properly. If you have 10 for example, all 3 options will be triggered

  • Custom User Avatar
    • SergeiZahar86
    • commented on "Sum Arrays" csharp solution
    • 2 years ago

    In my opinion this is the best solution.

  • Custom User Avatar
    • joelmalone
    • commented on "Unique In Order" csharp solution
    • 2 years ago

    Be aware that this solution will cause the entire contents of the results list to be held in memory, negating the benefits of IEnumerable.

    This could lead to out-of-memory exceptions when when dealing with lots of elements, and especially when dealing with large objects.

    It is a non-issue if the incoming enumerables are expected to be of reasonable size.

  • Custom User Avatar
    • MannyDev
    • commented on "Square(n) Sum" csharp solution
    • 4 years ago

    Elegant !

  • Custom User Avatar
    • byteflux
    • commented on "Square(n) Sum" csharp solution
    • 5 years ago

    Honestly the fastest way to learn these lambda expressions is just to do katas the way you know how to do and then compare your solution. When I learned C# that's just what I did. :)

    Do not think "I would have never come up with this simple solution", but rather "Oh so that's also a way to do it".

    Keep on keeping on!

  • Custom User Avatar
    • QuantumDrive
    • commented on "Square(n) Sum" csharp solution
    • 5 years ago

    Thanks for reply, I will do it.

  • Custom User Avatar
    • Chrono79
    • commented on "Square(n) Sum" csharp solution
    • 5 years ago

    Please mark your post as having spoiler content next time. It's visible in the homepage otherwise.

  • Custom User Avatar
    • QuantumDrive
    • commented on "Square(n) Sum" csharp solution
    • 5 years ago

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

  • Custom User Avatar
    • bf73
    • commented on "Unique In Order" csharp solution
    • 7 years ago

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

  • Custom User Avatar
    • byteflux
    • commented on "Kobayashi-Maru-Test" kata
    • 7 years ago

    Ahh i came up with a very very simple way to cheat... oh well..
    However looking at the other answers makes me realise that there is something other then a property that one can make public in an object..

  • Custom User Avatar
    • byteflux
    • commented on "Kobayashi-Maru-Test" kata
    • 7 years ago

    According to my googlefoo (https://www.lucidchart.com/pages/flowcharts/star-trek) we have to cheat to win. However the warbird class is a completely empty object type. No Properties or Methods one could inject code into. I must be missing something :(

  • Custom User Avatar
    • byteflux
    • commented on "Unique In Order" csharp solution
    • 7 years ago

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

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...