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.
Recursive C solution for the same
- lavi2510 July 04, 2017#include <stdio.h>
char Arr[] = "abcde";
int n = 5; //length of above string
void printforward(char fromPrev[6], int start, int position){
for(int i = start; i<n;i++){
fromPrev[position] = Arr[i];
fromPrev[position+1] = '\0';
printf("%s\n", fromPrev);
printforward(fromPrev, i+1, position+1);
}
}
int main(void) {
for(int i=0; i<n;i++){
char fromPrev[6];
printf("%c\n",Arr[i]);
fromPrev[0] = Arr[i];
printforward(fromPrev,i+1,1);
}
return 0;
}
P.S.: I know Arr and its length should not be declared global.