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 is polymorphism and types?
which feature are not hold visual basic of oop?
What are classes oop?
How to improve object oriented design skills?
What is the point of polymorphism?
What is the fundamental idea of oop?
What are benefits of oop?
Why is polymorphism used?
Why polymorphism is used in oops?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
What is property in oops?
Get me an image implementation program.
Why is abstraction used?
Which language is not a true object oriented programming language?
Why is polymorphism needed?