Given two strings like x=?hello? and y=?open?, remove any
character from string x which is also used in string y,
thus making the result x=?hll?.
Answer Posted / sourabh bose
int countX=0;
int countY=0;
string tmp=x;
for(countX=1;countX<=x.lenth();countX++)
{
for(countY=1;countY<=y.length();countY++)
{
if x.substring(1,countX).Equels(y.substring(1,countY)
{
tmp=tmp.Replace(tmp.substring(1,countX),"");
}
}
}
x=tmp;
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What are properties in oop?
What is object and class in oops?
What does I oop mean?
What is class and example?
What is a class in oop?
What is polymorphism explain?
Is html an oop?
i got a backdoor offer in process global,Bangalore..Can i work with it?
What is the point of polymorphism?
What is class in oop with example?
What are benefits of oop?
Is react oop?
What is property in oops?
Why polymorphism is used in oops?
What polymorphism means?