is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.
CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.
Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.
Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.
Use this is main
- SangIrava October 21, 2013//search for target string in string. return index where target is found.
int indexval = findtargetString("","");
Here are the main methods
bool checkwithTarget(int ind, string str, string target)
{
int j = 0;
while (ind < str.length() && j < target.length())
{
if (str[ind] == target[j])
{
j++;
ind++;
}
else{
return false;
}
}
return true;
}
int findtargetString(string str, string target)
{
str = "sanggeetha";
target = "geet";
vector<int> possibleIndices;
for (int i = 0; i < str.length(); i++)
{
if (str[i] == target[0])
{
possibleIndices.push_back(i);
}
}
for (int i = 0; i < str.length(); i++)
{
try {
cout << "Element " << i << ": " << possibleIndices.at(i) << endl;
if(checkwithTarget(possibleIndices.at(i), str, target))
return (possibleIndices.at(i));
}
catch (exception& e) {
cout << "Element " << i << ": index exceeds vector dimensions." << endl;
}
}
return -1;
}