+ Reply to Thread
Results 1 to 3 of 3

Thread: Find Pythagorean triplet in an array

  1. #1
    Krazy Guest

    Find Pythagorean triplet in an array

    Find all Pythagorean triplets in an array of real numbers.

    e.g: 2,3,4,5,6

    output:
    3,4,5

  2. #2
    AkkiS Guest
    Does any know any solution to this problem with time complexity < O(n^3) ??

  3. #3
    Surfer is offline Senior Member
    Join Date
    Mar 2010
    Posts
    321
    Using some balanced tree you can cut it down to O(n^2 log n)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 25th September 2010, 08:29
  2. Find three numbers in an array
    By TopGun in forum Algorithm/Data Structure Questions
    Replies: 1
    Last Post: 16th August 2010, 15:16
  3. find 2 numbers in an array
    By TopGun in forum Amazon
    Replies: 1
    Last Post: 19th June 2008, 14:06

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts