harbor run -t openthoughts/tasktrove-exp-rpt-unitsyn-python-large-unitsyn-python-4388
harbor download openthoughts/tasktrove-exp-rpt-unitsyn-python-large-unitsyn-python-4388
Implement a function called findPoint that calculates the coordinates of a point R that is symmetric to point P with respect to point Q. The coordinates of point P and point Q are given as input parameters.
findPoint
def findPoint(px: int, py: int, qx: int, qy: int) -> List[int]:
px
py
qx
qy
To compute the coordinates of point R, use the following formulas:
findPoint(1, 2, 3, 4) # Output should be [5, 6]
Write the solution in a file named /app/solution.py. The file should contain only the implementation of the findPoint function as described above.
/app/solution.py