Sort by

recency

|

380 Discussions

|

  • + 0 comments
    def findPoint(px, py, qx, qy):
        rx=2*qx-px
        ry=2*qy-py
        return rx,ry
    
  • + 0 comments

    For Python3 Platform

    I wrote the code from scratch just to get more practice

    def findPoint(px, py, qx, qy):
        return [2*qx-px, 2*qy-py]
    
    n = int(input())
    for i in range(n):
        px, py, qx, qy = map(int, input().split())
        
        result = findPoint(px, py, qx, qy)
        
        print(*result)
    
  • + 0 comments

    Python 3

    def findPoint(px, py, qx, qy):
        # Write your code here
        return [2*qx-px, 2*qy-py]
    
  • + 0 comments

    public static List findPoint(int px, int py, int qx, int qy) {

    return Arrays.asList(2 * qx - px, 2 * qy - py);
    }
    
  • + 0 comments

    Find the Point sounds like a great challenge for sharpening problem-solving skills! Also, check out vatcal for easy VAT calculations.