+ Reply to Thread
Results 1 to 2 of 2

Thread: Find nodes which has min difference

  1. #1
    Surfer is offline Senior Member
    Join Date
    Mar 2010
    Posts
    321

    Find nodes which has min difference

    Given a binary Search Tree containing numbers, Find two nodes whose difference in minimum.

  2. #2
    Surfer is offline Senior Member
    Join Date
    Mar 2010
    Posts
    321
    Do not use other data structure to store and sort the values.

    Hint: Find next node for each node and take the difference.

+ 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: 0
    Last Post: 26th September 2010, 08:33
  2. Replies: 4
    Last Post: 12th July 2010, 11:30
  3. find the difference
    By TopGun in forum Amazon
    Replies: 1
    Last Post: 2nd July 2010, 04:32
  4. Find number of possible unique trees of n nodes
    By TopGun in forum Algorithm/Data Structure Questions
    Replies: 1
    Last Post: 23rd April 2010, 11:10

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