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

mukesh and anil ambani invested amount in business and made in the ration 17:13 and made some profits. if mukesh earned 800 rs more than anil. then what is the profit they have earned....?

2 Answers  


.Both A and B Alice and Bob play the following chip-off-the-table game. Given a pile of 58 chips, Alice first picks at least one chip but not all the chips. In subsequent turns, a player picks at least one chip but no more than the number picked on the previous turn by the opponent. The player to pick the last chip wins. Which of the following is true?

0 Answers   TCS,


IF 3+4=25 AND 4+5=41 Then 5+6=?

11 Answers   Honeywell,


which Indian cricketer wrote the book of Tiger's tale?

3 Answers   SSC,


If INDIA = JOEJB then BSNZ =?

0 Answers   Aricent,






1. Questions on probability 2. Questions on statistics (mainly growth rates, market shares, etc.) 3. Questions on general logics 4. Evaluate strengths and weekness of proposed product All questions are open test

0 Answers   DEK, Nielsen, SP Jain, TMR,


if the first 3 no.s are 1,3,8...so on (fibonacci series) den at which postion will you get 143?

1 Answers  


A company figured it needed 37.8 sq.feet of carpot for its reception room. To allow for waste, it decided to order 20% more material than needed. Fractional parts of sq.feet cannot be ordered. At Rs.9/- a sq.feet, how much would the carpet cost?

4 Answers  


I am in need of probationary officers Exam model question papers.

0 Answers   TCS,


A triangle has sides of lengths 10, 24 and k. k is a positive integer. The number of values of k for which this triangle has three acute angles is

0 Answers   Cap Gemini,


a campus radio station surveyed 190 students to determine the type of music they liked.it revealed that 114 like rock,50 liked jazz,41 liked classical music.14 liked rock and jazz,15 liked rock and classical,11 liked classical and jazz,5 liked all types of music.draw venn diagram n explain how many a) like rock only b)like jazz but not rock? c)like classical or jazz but not rock? d)like classical and jazz but not rock? e)like exactly one of the 3 types of music? f)do not like any of the three types of music? g)like at least 2 of the three types of music? h)do not like either rock or jazz?

2 Answers   Accenture,


Can someone please send me the question paper for graduate level both tier 1 and tier 2 with detailed solution of maths exam (Tier 2). Please,suggest me the ways and books to prepare for this exam.Please, send this answer on my email Id

0 Answers  


Categories