• ###### goldenratio161commented on "Simple Fun #59: Reverse On Diagonals" python solution

like O(n) time, right, space is O(sqrt(n)).

• ###### 295commented on "Detect Pangram" rust solution

The ASCII values for 'a-z' are 97-122 (0b1100001-0b1111010), and 'A-Z' are 65-90 (0b1000001-0b1011010).
We only need the last 5 bits (0b11111 is 31) (since the first two bits are the same) to build our bitmask.

• ###### smir-antcommented on "Powers of 2" rust solution

geez, so smart

Good Code.

• ###### smir-antcommented on "Detect Pangram" rust solution

wtf?
can u explain, interesting way, but looks like brainfuck, heh

• ###### leehuntcommented on "Find numbers which are divisible by given number" cpp solution

you should only use & in a for loop if you intend to modify the element

Not really. In general you should always access the element by reference (i.e. " &x" if you need to modify it, or "const &x" if you don't), otherwise C++ must make a copy into the loop varible. HOWEVER, in the case of a built-in type like int, just getting a copy is (almost?) always just as efficient or more efficent that getting the elements address and then deref'ing it.

• ###### Haksellcommented on "Find out whether the shape is a cube" cpp solution

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

• ###### ThisisZakcommented on "More than Zero?" python solution

pretty much the same thing as mine... not bad!

• ###### exelimpichmentcommented on "Exclamation marks series #1: Remove an exclamation mark from the end of string" typescript solution

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

• ###### lechevaliercommented on "Enumerable Magic - Does My List Include This?" python solution

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

• ###### msc3000commented on "Enumerable Magic - Does My List Include This?" python solution

Can someone explain what is happening here? Glitch in the matrix?

Smart.

• ###### chriscarrollsmithcommented on "Two to One" typescript solution

Nice. I didn't realize you could decompose strings like that.

• ###### ejini战神resolved an issue on "Find how many times did a team from a given country win the Champions League?" kata

Fixed in latest fork

• ###### Peter-developer01commented on "Incorrect division method" julia solution

Thanks, now I understand.