Solved LeetCode program · 800 of 1,000
#1037 · Valid Boomerang
Original English source
The firstx is 1, while the firsty is 1. The secondx is 2, while the secondy is 3. The thirdx is 3, while the thirdy is 2. The left is (secondx minus firstx) times (thirdy minus firsty). The right is (secondy minus firsty) times (thirdx minus firstx). If left is right, show false, otherwise show true.
Expected stdout
true