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.
#include<iostream>
- Ghost September 15, 2012#include <sstream>
using namespace std;
void str_print(strint str);
int main()
{
int N;
string str="";
string temp="";
cin>>N;
int i=0;
int count=0;
while(i<=N)
{
if(i==0)
{cout<<"0"<<" 1"<<endl;str="1";}
else
{
temp="";
int start=0;
string te1="";
while(start<str.size())
{
count=0;
if(te1=="")
{
while(str[start]!=' ' && str[start]!='\0')
{
te1=te1+str[start];
start++;
}
}
string te2;
do{
te2="";
count++;
if(str[start]=='\0')
break;
start++;
while(str[start]!=' ' && str[start]!='\0')
{
te2=te2+str[start];
start++;
}
}while(te2==te1);
ostringstream convert;
convert << count;
if(temp!="")
temp=temp+" "+convert.str()+" "+te1;
else
temp=convert.str()+" "+te1;
string kl=te1;
if(te2!="" && te2!=te1)
te1=te2;
if(start>=str.size() && kl!=te1)
temp=temp+" 1 "+te1;
}
str=temp;
cout<<i<<" "<<str<<endl;
}
i++;
}
return 0;
}