Oracle Interview Question for Site Reliability Engineers


Team: noida
Country: India




Comment hidden because of low score. Click to expand.
0
of 0 vote

anyone ?? :|

- sujita July 04, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

you would get better answers if you can split them and post as different questions...!

- irraju July 04, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

ohk thanks for suggestion.I'll do the same.

- sujita July 04, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

void main()
{

int a[] = {0,1,1,0,1,0,1,0,0,1,1,1,0} ,len =0;
len = sizeof(a) / sizeof(a[0]);
int *last;
last = a;
int flag = 0;

for(int i =0 ;i<len; i++)
{
if(a[i] == 1 && flag == 0)
{
last = a + i;
flag = 1;
}
else
{
if(a[i] == 0 && flag == 1)
{
a[i] = a[i]+1;
*last = 0;
last++;
}
}
}

for(int i =0; i<len; i++)
printf("\n%d",a[i]);
}

- kk July 04, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

private static int [] sortBinary(int a[]){
	if(a!=null){
		int oneCount=0;
		for(int i=0;i<a.length;i++){
			 if(a[i]==1){
				 int temp=a[i];
				 a[i]=a[oneCount];
				 a[oneCount]=temp;
				 oneCount++;
				 
			 }
			
		}
	}
		return a;
	}

- Damaji Maruti Kalunge October 03, 2013 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

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.

Learn More

Resume Review

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.

Learn More

Mock Interviews

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.

Learn More