Rounding to the nearest integer and rounding to the biggest near integer are not the same thing. In a python problem, you need to round the biggest near integer.
Again the approved kata which instead of knowledge of programming language, fundamentals, tricks or just being logical puzzle (that's quite ok) is based on poor misleading description.
It's even formally misleading cause it says about x and y "converts them into resolutions", but really x isn't needed at all. I just wasted time trying to understand what I have to do with x...
Write a function that accepts arbitrary X and Y resolutions and converts them into resolutions with a 16:9 aspect ratio that maintain equal height. Round your answers up to the nearest integer.
It says 16:9 and round up, what's misleading there?
The thing I could agree is misleading is the example in the description, I'd say it should be 498x280 instead of 500x280.
task is misleading. we should return array [X, Y]. and use aspect ratio 16/9; not 1,77
and we shouldn't return rounded number to nearest interget, we return the biggest near integer.
Kata is not bad. you just need to think mathematically
Rounding to the nearest integer and rounding to the biggest near integer are not the same thing. In a python problem, you need to round the biggest near integer.
Again the approved kata which instead of knowledge of programming language, fundamentals, tricks or just being logical puzzle (that's quite ok) is based on poor misleading description.
It's even formally misleading cause it says about x and y "converts them into resolutions", but really x isn't needed at all. I just wasted time trying to understand what I have to do with x...
This comment is hidden because it contains spoiler information about the solution
Answered by OP above, closing
OP solved it, closing
Approved
Scala translation
条件と 1 つの例に矛盾があります
Coffeescript approved
It says 16:9 and round up, what's misleading there?
The thing I could agree is misleading is the example in the description, I'd say it should be
498x280
instead of500x280
.task is misleading. we should return array [X, Y]. and use aspect ratio 16/9; not 1,77
and we shouldn't return rounded number to nearest interget, we return the biggest near integer.
i agree with you too!
Approved!
COBOL translation
Loading more items...