The TransCompilator

Solved LeetCode program · 800 of 1,000

#1037 · Valid Boomerang

Easy Array chunk-16.md

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.

Open in Playground Browse all 1,000 problems

Expected stdout

true