interview questions and answers

Technical Interview Questions | C Interview Questions

Home interview questions Programming interview questions C 
Wednesday, 08 February 2012
Main Menu
Home
Online Test
Contest
Search
FAQs
Contact Us
Login
Most Popular Category
JAVA

Microsoft Technologies
ASP, C#, DotNet, ...

Programming
C++, PHP, VB, ...

SAP

Testing

Web Technologies

Polls
Does personal networking help in job search?
 
IT Placement Papers interview questions Programming interview questions C

This category contains C Interview Questions and Answers


Write a C program to find the mininum value in a binary search tree.

PDF Print E-mail
Here is some sample C code.
The idea is to keep on moving till you hit the left most node in the tree

int minValue(struct node* node)
{
   struct node* current = node;   
   while (current->left != NULL) 
    {    
       current = current->left; 
    } 
  return(current->data);
}


Be first to comment this article

Only registered users can write comments.
Please login or register.

 
Next >

Technical Interview Questions | C Interview Questions

Top!
Top!
Copyright © 2008 InterviewDuniya.com All Rights Reserved.
Partner Site: Maheshwari Matrimony