Asked By: Interview Candidate | Asked On: Jun 3rd, 2005
Asked By: Interview Candidate | Asked On: Jun 3rd, 2005
Answered by: samCPP on: Dec 4th, 2011
Reversing a Linked list using temporary pointer {geshibot language="c"}#include #include using namespace std; template < class T > struct node { int element; node < T > *next; node() { ...
Answered by: ankit srivastava on: Oct 17th, 2011
public void ReverseLinkedList (LinkedList linkedList) { // ------------------------------------------------------------ // Create a new linked list and add all items of given // linked list to the co...
Tie
Asked By: Interview Candidate | Asked On: Jul 3rd, 2005
Answered by: yogesh_ on: Dec 14th, 2009
ANS is TIE because .......TIE shows some thing about 2 things (like TIE match tells abt 2 teams) And since it contains 2 vowels
hence the ans...
Answered by: RAJESH G on: Jul 28th, 2006
ans: TIE
A number of cats got together and decided to kill between them 999919 mice. Every cat killed an equal number of mice. Each cat killed more mice than there were cats. How many cats do you think there were?
Asked By: neepabiswas | Asked On: Feb 4th, 2008
Answered by: ramsri_00 on: Mar 22nd, 2010
Assume ,n=Number of cats and m=Number of mice per cat Given that,n*m=999919 and m>n Solution,n*m=(1000000-81)=1002-92=(100+9)*(100-9)=109*91=109*13*7Finally , n*m=109*13*7The followi...
Asked By: sweety | Asked On: Oct 28th, 2007
Answered by: jechanter on: Feb 8th, 2010
main() { scanf("%d",&a); // base scanf("%d",&b); //power &nbs...
Answered by: sarabjit on: Oct 14th, 2009
#include<stdio.h>int main(){int a,b,i,prod=1;printf("Enter a number :");scanf("%d",&a);printf("Enter its power:");scanf("%d",&b);for(i=0;i<b;i+...
G represents the digit 2
Asked By: Interview Candidate | Asked On: Jun 3rd, 2005
Answered by: GajendraC on: Jan 22nd, 2010
The value of g is 2 and
A*B*C =B*G*E=D*E*F=72
Answered by: GajendraC on: Jan 22nd, 2010
As given A*B*C=B*G*E=D*E*FhenceA*B*C=B*G*E-------(1)B*G*E=D*E*F--------(2)from 1=> G=AC/Eand from 2=>G=DF/BsinceAC/E=DF/B----------(3)Here we have 0 to 9 numbers so we arrenge the numbers ...
Mr. Horton:he is the doctor
Asked By: Interview Candidate | Asked On: Jun 3rd, 2005
Answered by: vangavenunath on: May 22nd, 2009
Son is lawyer
He (Mr.Horton) is Doctor
He is doctor
Wife is Lawyer
These are the two possibilities for the question.
Answered by: asdfasdf2_2 on: May 15th, 2009
According to the question C) Says that there are only two chances that is doctor and lawyer should be men or doctor and lawyer should be women.B) There are only two women who are not blood relatives...
Say for eg. If 123 is given as input the output should be displayed as
Asked By: Anandkumar | Asked On: Dec 5th, 2005
Answered by: sriranga.ch on: Sep 25th, 2008
main() { int num=123;
char c;
while(num>1)
{
c=num%10;
num=num/10;
printf("%c",c);
}
}
In the following figure:a b C d e f g h ieach of the digits 1, 2, 3, 4, 5, 6, 7, 8, and 9 is:a)represented...
Asked By: Interview Candidate | Asked On: Jul 19th, 2005
Answered by: md imran on: May 12th, 2008
possible combo for 13 is 9+1+22+3+83+4+62+5+6some digits are repeated like 2 , 3 and 6..it means they are to be positioned at the junctionthe logical pos comes out to be9 1 2 &n...
Answered by: Ganesh on: Dec 14th, 2005
Also, to add, the values of ABCDEFGHI can be expressed as
(1,3,9), (1,8,4), 2,4,7), (2,5,6)
A function even_odd_difference()passes the array of elements.Write a program to calculate the difference of the two sums of which one sum adds the elements of odd ones and another adds the elements of even ones.
Asked By: Interview Candidate | Asked On: Jun 3rd, 2005
Answered by: shah_saurabh164 on: Jul 23rd, 2007
/* Saurabh Shah - PUNE*/#include<stdio.h>#include<conio.h>void main(){ int arr[30],i,n,sum1=0,sum2=0,sum; clrscr(); printf("how m...
Asked By: Interview Candidate | Asked On: Jun 3rd, 2005
Answered by: sunil kumar on: Jan 22nd, 2007
we cantr find the number of node in circular link list
because there is no last node in the cir link list .
(if any comment plz mail to me )
Mrs.Bee did not lose a game
Asked By: Interview Candidate | Asked On: Aug 27th, 2005
Answered by: swarna on: Dec 26th, 2006
1-Mr and Mrs aee (Mr Aee wins)
2-Mr Aee and Mr Bee (Mr Aee wins)
3-Mr Aee and Mrs Bee (Mrs Bee)
Men wins twice,Women once.
1st game played by couples Mr and Mrs Aee
Answered by: Al on: Nov 2nd, 2006
this puzzle is from george j. summers "puzzles and teasers'Answer is Mrs Bee,,, george has given a confusing and long explaination,, here is my versionMr aye beat mrs aye in first game (bee cant be pl...
For the list class, add a boolean-valued function that determines whether the data items in the linked list are arranged in ascending order. How can I do this using recursion ?
Asked By: Rooro | Asked On: Nov 7th, 2006
Pile ii
Asked By: Interview Candidate | Asked On: Jun 3rd, 2005
Binoy's family--el
Asked By: Interview Candidate | Asked On: Jun 3rd, 2005
Answered by: n.m.sudesh kumar on: Mar 20th, 2013
{geshibot language="c"}#include
#include
void main()
{
int pre=0,next=1,sum=0,n;
clrscr();
printf("enter the value of n:");
scanf("%d",&n);
while(pre<=n)
{
printf("the fibonacci series; %d
",pre);
sum=pre+next;
pre=next;
next=sum;
}
getch();
}{/geshibot} Answered by: madhusudan dadhich on: Jul 24th, 2012
limit:5 01123
24 answers