• PialaChaiImbacommented on "Simple multiplication" cpp solution

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

• senior_kapitoshkacreated a question for "Tuple sum" kata

in test example 3.14 and 42 are equal to 45.14, this is clear, but i wonder where did 0.001 come from?

• FartDraftcreated a question for "Tuple sum" kata

Awesome Kata! C++ tuples are insane to work with! Can you suggest me more Katas similar to yours?

• hbrezakcommented on "Counting Duplicates" cpp solution

Nice and compact solution, but there is room for improvement.
My two cents:

1. looping via the string is written in C-style. In my opinion, ranged for-loop would be more compact and readable.
2. As others have pointed out, use of count_if algorithm adds another iteration over the map which would affect the performance. It is more efficient to simply count chars which appeared twice in the first loop.
• Azarencommented on "Scramblies" cpp solution

Clever (4,7s) but not best practice.... Sorry....(my code = 3,9s, but not clever :-( )

• ProgerDreamercommented on "Scramblies" cpp solution

Solution of O(nlogn) complexity for O(n) problem, though

• sv90commented on "Scramblies" cpp solution

it is pass-by-value since the & was removed. So the input parameters are in fact copies. The code is fuly eqivalent to the function taking const& and then making explicit copies.

• xmlelementcommented on "Scramblies" cpp solution

I don't think changing the function signature is a good idea. Parameters are modified inside the function
and a user will get a trash instead of original strings.
Maybe parameters were const on purpose...

• fireflyTmpcommented on "Scramblies" cpp solution

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

Impressive.

it's so fast

• manikarancommented on "Grasshopper - Messi goals function" cpp solution

thanks a lot!

• sv90commented on "Grasshopper - Messi goals function" cpp solution

It is called a fold expression