• ###### shredder67commented on "Replace With Alphabet Position" csharp solution

Dude, LINQ is a such wonderful feature of this language.
I used it only partially in my solution, but this is so hot, have to learn it better.

• ###### KataSideKickcommented on "Valid Spacing" csharp solution

wow,the first time write the same code.

• ###### Jillseacommented on "Replace With Alphabet Position" csharp solution

This happens because you can't downvote some solutions.

• ###### ejini战神resolved an issue on "Evaluate a postfix expression" kata

Duplicate issue below

Thank you

• ###### krnetscommented on "Sequence classifier" csharp solution

Most efficient and performant solution.
Definitely Best Practice, even though it is clever in its own unique way.

• ###### Blind4Basicscommented on "Isograms" csharp solution

@pescadomuerto: when it comes to time complexities, most of the time comparing the number of passes is meaningless. You're currently sort of saying that `3*n != n*3`. That's why the asymptotic behavior is ignoring the constant factors.

• ###### pescadomuertocommented on "Isograms" csharp solution

RoFTW, for a HashSet, Contains() is an O(1) operation, not O(N). So there is no "going over the set" in my solution. Also, using exception handling (try/catch) as in your solution will have comparitively terrible performance as setting up and triggering exceptions is very, very expensive. So while your solution is O(N), the c is very very large in practice. The perf overhead of exception handling is why there are often versions of the same operations that do not throw exceptions in some class libraries, like TryParse, TryGetValue, etc.

• ###### RoFTWcommented on "Isograms" csharp solution

Your solution goes over the set for each iteration of the for loop - this means in the worst case scenario it is O(n^2).

• ###### Blunecommented on "Binary Addition" csharp solution

It's the base of the return value. As binary is requested it is 2. But 8, 10 and 16 are also possible.

• ###### DrewS97commented on "Binary Addition" csharp solution

What exactly does the 2 do in this code?

• ###### liuxilucommented on "Replace With Alphabet Position" csharp solution

`Char.IsLetter` is unreliable, look at the doc, you will get Cyrillic, Greek, Hebrew, Arabic, Chinese...

`String.ToLower` is unreliable, it's by local, `String.ToLowerInvariant` should be used instead.
E.g. in Turkish, the lower case of `0049 I latin capital letter I` is `0131 ı latin small letter dotless i`.

• ###### TMendyscommented on "Binary Addition" csharp solution

You get used to them when you start using them.