T
T
Tim Tatman2018-02-01 14:47:02
Java
Tim Tatman, 2018-02-01 14:47:02

Is there a resource for this sort of thing?

Tell me if there is a resource with similar solutions to tasks and with their further consideration?
Example
public boolean isInsideRect(int xLeft, int yTop, int xRight, int yBottom, int x, int y)
A rectangle with horizontal and vertical sides, defined by two points - upper left (xLeft, yTop) and lower right (xRight, yBottom). On the OXY plane, the X axis is directed to the right, the Y axis is down. Given another point with coordinates (x, y). It is guaranteed that xLeft < xRight and yTop < yBottom. The method must return true if the point lies inside the rectangle , otherwise false. If the point lies on the border of the rectangle, then it is considered to lie inside it.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Евгений, 2018-02-01
@klim76

Есть ли ресурс с разбором подобных заданий

Есть, называется среднеобразовательная школа

Кастян, 2018-02-01
@iSmoke

cyberforum.ru

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question