VALUES

Google Coding Interview Problem #2

Boomerang Problem :

Follow this page to get early questions and more coding-related stuff.

Difficulty Level: Easy

Problem: Boomerang

Question : 

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 a plane, return whether this points are boomerang

Test Case :

    1). Input-1 :

            [ [1,1], [2,2], [3,3] ]

        Output-1 :

            false

    2). Input-2 :

            [ [1,1], [2,3], [3,2] ]

        Output-2 :

            true 

Solution


if you like it please share & subscribe for more updates.

See other posts :

Related Articles

Back to top button