Input type should be Tuple<int, int>
Tuple<int, int>
Actual and expected are swapped in test method
test
Also, missing useful assertion messages
Missing return 0 in initial solution setup
return 0
The current random test generation is too small. Please follow other languages' random tests generation, as such: .
list_n, list_d = range(10, 10001, 10), range(10, 10001, 2) n, d = choice(list_n), choice(list_d)
Interesting!, this won't scale well though, try testing with this it('5e6 - (+10)', ()=> verify(5e6 - (+10), 86028157))
it('5e6 - (+10)', ()=> verify(5e6 - (+10), 86028157))
regex reigns supreme π
Well done! Very useful functions on string
string
The valueIsNarcissique array is the superset of narcissistic numbers? Why work hard when you can just look into the dictionary? π
Caution; string.toLowerCase().split('this').length returns amount of delimiter + 1. Be sure to deduct the one when trying to count number of delimiters.
I like this, clean without any obvious performance issues.
clean solution.ππΎ
Not bad at all! I thought of this too.
Sweet!
CoolππΎ
This is my attempt at translating "Reduce My Fraction" to C#, please feel free to review it. Thanks
Trolling?
Regex to the rescue. Most times brings you clean, simple and readable solutions like this to table. Well done!
Multi-nested if blocks not advisable.
Loading collection data...
Input type should be
Tuple<int, int>
Actual and expected are swapped in
test
methodAlso, missing useful assertion messages
Missing
return 0
in initial solution setupThe current random test generation is too small. Please follow other languages' random tests generation, as such: .
Interesting!, this won't scale well though, try testing with this
it('5e6 - (+10)', ()=> verify(5e6 - (+10), 86028157))
regex reigns supreme π
Well done! Very useful functions on
string
The valueIsNarcissique array is the superset of narcissistic numbers?
Why work hard when you can just look into the dictionary? π
Caution; string.toLowerCase().split('this').length returns amount of delimiter + 1. Be sure to deduct the one when trying to count number of delimiters.
I like this, clean without any obvious performance issues.
clean solution.ππΎ
Not bad at all! I thought of this too.
Sweet!
CoolππΎ
This is my attempt at translating "Reduce My Fraction" to C#, please feel free to review it. Thanks
Trolling?
Regex to the rescue. Most times brings you clean, simple and readable solutions like this to table. Well done!
Multi-nested if blocks not advisable.
Loading more items...