• ###### jwerncommented on "Discover The Original Price" kata

In Ruby, the random test doesn't make sense: the discounted price was listed as 403 and the sale percentage was 100. If the sale percentage is 100, then the discounted price should be 0 (and the original price could be anything).

• ###### krishpcommented on "Discover The Original Price" kata

Maybe we are all secret geniuses?

• ###### handtuchcommented on "Dubstep" csharp solution

I think because he used .net framework where you need a special syntax to use replace with string delimiter. He probably didnt know it.

• ###### thedimitricommented on "Dubstep" csharp solution

Why not just split on "WUB" to begin with? To skip the extra step.

• ###### rowcasedcreated a suggestion for "Discover The Original Price" kata

C translation kumited

• ###### elffikkcommented on "Disemvowel Trolls" csharp solution

there are a constant number of vowels, so it is also O(1)

• ###### truthisnuancedcommented on "IQ Test" csharp solution

Can someone help me understand the double "First"?

• ###### alexschrodcommented on "Counting sheep..." csharp solution

Victor-Sun, if you just do `Count()` on something, you'll count everything. However, `Count()` also has an overload that takes a predicate, which is basically a filter telling `Count()` whether or not to include an item in the count. You can think of `Count(predicate)` as shorthand for `Where(predicate).Count()` if you'd like.

Thus, in the expression `s => s`, you're telling `Count()` to only count items if they are `true`.

• ###### clcraigcommented on "Discover The Original Price" kata

Perhaps your just seeing the numbers for a particular language. For example, currently Python is 587 of 2,523 but JavaScript is 1,294 of 2,523.

• ###### Victor-Suncommented on "Counting sheep..." csharp solution

I know this is old, but can someone explain where the s comes into play?
I know the left side s is the parameter but the right side s is what is returned, but how does that return if the vale is true if there is only the parameter.

• ###### benrickcommented on "Primes in numbers" csharp solution

string.Concat() would be better than string.Join(), since you're not using the separator.

• ###### Chrono79commented on "Discover The Original Price" kata

Your function is returning 547.0 there, the expected value is ok.

• ###### maxmercycommented on "Discover The Original Price" kata

Test in Ruby are wrong.
There are not rounded correctly.
In the Kata instruction, it is asked to round with 2 digits but in the random exemple it is rounded strangly for exemple this test fails:
"
Testing for 186 and 66
It should work for random inputs too - Expected: 547.06, instead got: 547.0
"
If I do the math manually I obtain: 547.058823... rounded it is 547.06.