Salesforce Interview Report
- 0of 0 votes
Answersclass ex
- sekhar740 September 23, 2011 in India
{
int i;
public:
ex(int ii = 0):i(ii){}
~ex(){cout<<"dest"<<endl;}
void show()
{
cout<<"show fun called"<<endl;
}
};
int main(int argc , char *argv[])
{
ex *ob = NULL;
ob->show();
return 0;
}
what happens when we call show method.| Report Duplicate | Flag | PURGE
Salesforce Developer Program Engineer C++ - 0of 0 votes
AnswersHow to replace the space in the string with "ABC" without using extra memory.. string may contain some extra memory.
- sekhar740 September 23, 2011 in India
str = "i am chandu" -- str contation more memory...
str = "iABCamABCchandu"| Report Duplicate | Flag | PURGE
Salesforce Developer Program Engineer String Manipulation - 0of 0 votes
AnswersGiven pre order traversal of a tree. It has only 2 type of nodes, N & L (non-leaf, leaf).. Also, every node either has zero or two children.
- P January 24, 2012 in India
Produce the tree.
Eg: Pre-order NNLLL
Tree;
N
/ \
N L
/ \
L L| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer - 0of 0 votes
AnswersConsider a cloak room. It has 3 compartments, small, medium, large
- P January 24, 2012 in India
1 medium = 2 small
1 large = 2 medium = 4 small
Design such a system, ensuring maximum capacity optimization of the compartments. Also, make the required number of moves (in-btw compartments) as minimum as possible.
Write class, functions. Wht functions will u expose. What token will you return back to the user.| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Application / UI Design