Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


There are 3 baskets of fruits with worng lables,one basket
has apple,another basket has orange,another has combination
of apple and orange,what is the least way of interchange
the lables.

Answers were Sorted based on User's Feedback



There are 3 baskets of fruits with worng lables,one basket has apple,another basket has orange,ano..

Answer / nagendra

i m agree with ans 3.
ans 3 is perfect..because all labels r incorrect initially.

Is This Answer Correct ?    1 Yes 2 No

There are 3 baskets of fruits with worng lables,one basket has apple,another basket has orange,ano..

Answer / ushnish ranjan chatterjee

one basket of apple,least possible way of interchange-1!
one basket of orange ,least possible way of interchange-1!
another has combination of apple nd orange,te least
possible way of interchange-3C2
the least possible way of interchange-1C1+1C1+3C2=5

Is This Answer Correct ?    1 Yes 2 No

There are 3 baskets of fruits with worng lables,one basket has apple,another basket has orange,ano..

Answer / mugeshprabhu p

First put the fruits to a suitable correct labled
baskets . This is the easy way to Interchange the lables.

Is This Answer Correct ?    8 Yes 10 No

There are 3 baskets of fruits with worng lables,one basket has apple,another basket has orange,ano..

Answer / guest

Apples to apples
Oranges to oranges
combination to Apples and oranges

Is This Answer Correct ?    1 Yes 3 No

There are 3 baskets of fruits with worng lables,one basket has apple,another basket has orange,ano..

Answer / suganya


First we have 2 put all the apples and oranges in the
same basket.. Later v hav 2 arrange the fruits acc to the
lables in the basket..

Is This Answer Correct ?    2 Yes 11 No

Post New Answer

More C Interview Questions

Is boolean a datatype in c?

0 Answers  


Are local variables initialized to zero by default in c?

0 Answers  


What is bubble sort in c?

0 Answers  


What is the difference between procedural and functional programming?

0 Answers  


write an algorithm and a program to count the number of elements in a circularly singly linked list

1 Answers   Ignou,


How can I make sure that my program is the only one accessing a file?

0 Answers  


I need testPalindrome and removeSpace #include <stdio.h> #define SIZE 256 /* function prototype */ /* test if the chars in the range of [left, right] of array is a palindrome */ int testPalindrome( char array[], int left, int right ); /* remove the space in the src array and copy it over to the "copy" array */ /* set the number of chars in the "copy" array to the location that cnt points t */ void removeSpace(char src[], char copy[], int *cnt); int main( void ) { char c; /* temporarily holds keyboard input */ char string[ SIZE ]; /* original string */ char copy[ SIZE ]; /* copy of string without spaces */ int count = 0; /* length of string */ int copyCount; /* length of copy */ printf( "Enter a sentence:\n" ); /* get sentence to test from user */ while ( ( c = getchar() ) != '\n' && count < SIZE ) { string[ count++ ] = c; } /* end while */ string[ count ] = '\0'; /* terminate string */ /* make a copy of string without spaces */ removeSpace(string, copy, &copyCount); /* print whether or not the sentence is a palindrome */ if ( testPalindrome( copy, 0, copyCount - 1 ) ) { printf( "\"%s\" is a palindrome\n", string ); } /* end if */ else { printf( "\"%s\" is not a palindrome\n", string ); } /* end else */ return 0; /* indicate successful termination */ } /* end main */ void removeSpace(char src[], char copy[], int *cnt) { } int testPalindrome( char array[], int left, int right ) { }

0 Answers  


write a program to print %d ?

12 Answers  


Can you tell me how to check whether a linked list is circular?

1 Answers  


write a program to display the array elements in reverse order in c language

16 Answers  


WAP to accept basic salary of an employee? Calculate it HRA=25%,DA=30%,PF=30%&net salary display all contents?

6 Answers   Finite Infotech, Lovely Professional University, Wipro,


Why pointers are used?

0 Answers  


Categories