Popads

PopAds.net - The Best Popunder Adnetwork
Boomerang Problem :

This Question was posted on Instagram page @_computer_engineers_ 
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.
for query comment us & Mail us @ comeng1704@gmail.com

See other posts :

3 Comments

Like post ? Comment & Share

Post a Comment

Like post ? Comment & Share

Previous Post Next Post