Two sentences are given and we were required to print the
common word in the two sentences. Words were delimited by
space, full stop, ? , ! and , . The trick in the question
was that common word should be printed only once so if ur
first sentence contains two word "how" and second contains
"how" then in output how should be printed only once for
this u can replace each matched word in second sentence by
spaces .

i want a solution in C/C++ language


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More General Aptitude Interview Questions

in a mixture, R is 2 parts, S is 1 part. in order to make S to 25% of the mixture, howmuch R is to be added

0 Answers   Accenture,


Complete the series:5,6,7,8,10,11,14,__.

0 Answers   TCS,


In a square , all the mid points are joined. the inner square is shaded. If the area of the square is A, what is the shaded area?

4 Answers   IBM,


what is an easy way to remove above problem.

2 Answers  


Low temperature at the night in a city is 1/3 more than 1/2 hinge as higher temperature in a day. Sum of the low temp and highest temp is 100c. Then what is the low temperature

0 Answers   TCS,






In a company 30% are supervisors and 40% employees aare male if 60% of supervisors are male what is the probability that is randomly choosen employee is a male or female?

0 Answers   HCL,


There are 9 coins. One of 9 is less weighted and others have equal weighed. Find the minimum no of balances to find the defective coin?

0 Answers   Accenture,


can anybody tell me all about the UBI clerical post test and interview. I am an exservicemen. Please help me.

1 Answers  


you drive a car. Number of the car is KA17 M8719.It leaves at 10.26am from davanagere to Bangalore which is 264 km away at a speed of 95km/hr.Car reaches bangalore at 4.18pm. Now tell me what is the date of birth of driver?

15 Answers   Infosys,


A contractor employed 200 men to complete a strip of highway in 200 days. After 150 days he found that only 3/5th of the strip is complete. How many additional men should be employed to complete the work on time?

0 Answers   Godrej,


There is a 5digit no. 3 pairs of sum is eleven each. Last digit is 3 times the first one. 3 rd digit is 3 less than the second. 4 th digit is 4 more than the second one. Find the digit.

9 Answers   Infosys, NIIT,


which one of the following nutrients is not a structural components of the plant

3 Answers   CDS, IES,


Categories