Skip to content

Latest commit

 

History

History
97 lines (39 loc) · 1.17 KB

File metadata and controls

97 lines (39 loc) · 1.17 KB

中文文档

Description

A boomerang is a set of 3 points that are all distinct and not in a straight line.

Given a list of three points in the plane, return whether these points are a boomerang.

 

Example 1:

Input: [[1,1],[2,3],[3,2]]

Output: true

Example 2:

Input: [[1,1],[2,2],[3,3]]

Output: false

 

Note:

    <li><code>points.length == 3</code></li>
    
    <li><code>points[i].length == 2</code></li>
    
    <li><code>0 &lt;= points[i][j] &lt;= 100</code></li>
    
 

Solutions

Python3

Java

...