CONTENTSERV Interview Question

1.Intersection of two array. 2.max two numbers addition in array. 3.first non repeating charector in string 4.josephas number

Interview Answers

Anonymous

Jul 3, 2017

#include using namespace std; int main() { int a[5],b[5],i,j,f=0; cout>a[i]; } cout>b[j]; } for(j=0;j<5;j++){ for(i=0;i<5;i++){ if(a[i]==b[j]){ cout<<"value of intersection"<

1

Anonymous

Jul 3, 2017

Question 1. #include using namespace std; int main() { int a[5],b[5],i,j,f=0; cout>a[i]; } cout>b[j]; } for(j=0;j<5;j++){ for(i=0;i<5;i++){ if(a[i]==b[j]){ cout<<"value of intersection"<

Anonymous

Feb 10, 2017

by my own logic

19