• 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
bert2 Avatar
Name:Robert Hofmann
Clan:Unknown
Member Since:Jun 2020
Last Seen:Dec 2020
Profiles:
Following:0
Followers:0
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations
  • Replies
  • Authored (8)
  • Needs Resolution
  • Custom User Avatar
    • bert2
    • commented on "First non-repeating character" csharp solution
    • 5 years ago

    Are you sure? I think Where() works as lazy/deferred as most LINQ operators do. That means inside a LINQ chain, Where() will only request the next item from the operator "above" when an operator "below" requested an item from it.

    In contrast, operators like GroupBy() and OrderBy() do in fact evaluate the complete enumerable befor they can yield their first item. Which makes sense, because both have to look at all items, before they can determine the grouping/ordering.

  • Custom User Avatar
    • bert2
    • commented on "Dentzil's C# solution for "Sort the odd"" kumite
    • 5 years ago

    A bit longer but avoids copying the array and sorts it in-place instead.

  • Custom User Avatar
    • bert2
    • commented on "Sort the odd" csharp solution
    • 5 years ago

    This is so brilliant it makes me ashamed of my solution :D

  • Custom User Avatar
    • bert2
    • commented on "Playing with digits" csharp solution
    • 5 years ago

    Finally another solution that doesn't rely on string conversions/parsing!
    Mine looks almost identical ^^

  • Custom User Avatar
    • bert2
    • commented on "Stop gninnipS My sdroW!" csharp solution
    • 5 years ago

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

  • Custom User Avatar
    • bert2
    • commented on "Array.diff" csharp solution
    • 5 years ago

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

  • Custom User Avatar
    • bert2
    • commented on "Find the odd int" csharp solution
    • 5 years ago

    Oh my god, that's so smart! I love it :)

  • Custom User Avatar
    • bert2
    • commented on "Decode the Morse code " csharp solution
    • 5 years ago

    Unfortunately the C# compiler used does not support C# 8.0 with switch expressions. DecodeCharacter() would look less bulky/noisy with that:

    private static string DecodeCharacter(string morse) => morse switch {
        "···−−−···" => "SOS",
        ".-.-.-"    => ".",
        "--..--"    => ",",
        _           => MorseCode.Get(morse)
    };
    
  • © 2025 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Code of Conduct
  • Contact

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...