thank you for your suggestion :) (mine looks same as him)
Yes, but my point was that this isn't best practice.. just clever.
the description says the input will be all positive integers
Good, but if they were to pass negative numbers as an input and it would fail..
When I was trying to use this method it said me that it's wrong. WTF? 🤬
More concise than #1! Way to go!
agreed.
Question asks to solve when "given an array of minimum 4 POSITIVE integers"
it does not solve if there are negative or non-integer numbers in the array
why do we need to subtract a-b i dont understand its meaning or what it does
My own opinion - Its the best solution. Ever.
Thanks a lot for this Kata! I really enjoyed implementing this.
Loading collection data...
thank you for your suggestion :) (mine looks same as him)
Yes, but my point was that this isn't best practice.. just clever.
the description says the input will be all positive integers
Good, but if they were to pass negative numbers as an input and it would fail..
When I was trying to use this method it said me that it's wrong. WTF? 🤬
More concise than #1! Way to go!
agreed.
Question asks to solve when "given an array of minimum 4 POSITIVE integers"
it does not solve if there are negative or non-integer numbers in the array
why do we need to subtract a-b i dont understand its meaning or what it does
My own opinion - Its the best solution. Ever.
Thanks a lot for this Kata! I really enjoyed implementing this.