Tap here to switch tabs
Problem
Submissions

Problem: Valid Boomerang

med
30 min
Try to solve the Valid Boomerang problem.

Statement

Given an array points where points[i] =[xi,yi]= [x_i, y_i] represents a point on the 2extD2 ext{D} plane, determine whether these points form a boomerang.

A boomerang is defined as a set of 33 points that are all pairwise distinct and do not lie on a straight line.

Return true if the given points form a boomerang, and false otherwise.

Constraints:

  • points.length =3= 3

  • points[i].length =2= 2

  • 0≤xi,yi≤1000 \leq x_i, y_i \leq 100

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Valid Boomerang

med
30 min
Try to solve the Valid Boomerang problem.

Statement

Given an array points where points[i] =[xi,yi]= [x_i, y_i] represents a point on the 2extD2 ext{D} plane, determine whether these points form a boomerang.

A boomerang is defined as a set of 33 points that are all pairwise distinct and do not lie on a straight line.

Return true if the given points form a boomerang, and false otherwise.

Constraints:

  • points.length =3= 3

  • points[i].length =2= 2

  • 0≤xi,yi≤1000 \leq x_i, y_i \leq 100