Hack Your Minds

Hack Your Minds

Innovation, Inspiration, Instigation


Hackerrank Problem Solving Ruby Mathematics

Simple Program For Finding Symmetrical Point

Posted on .

Following up from the earlier post, I first started with a very simple mathematical problem of finding symmetrical point, given a set of coordinates. The problem statement is as follows: Given two points P and Q, output the symmetric point of point P about Q. Input Format The first line contains an integer T representing the number of testcases Each test case is a line containing four space separated integers Px Py Qx Qy representing the (x,y) coordinates of

Read on