We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Mathematics
- Geometry
- Rectangular Game
- Discussions
Rectangular Game
Rectangular Game
Sort by
recency
|
40 Discussions
|
Please Login in order to post a comment
In Kotlin, I got an overflow error in some test cases. I needed to change the return type for Long to make it pass.
Java :
python code def solve(steps): x = [] y = [] for i in range(n): x.append(steps[i][0]) y.append(steps[i][1]) x1 = min(x) y1 = min(y) result = x1*y1 return result
My Python code, which passed all the test cases: