Oracle Interview Question for Software Engineer / Developers






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

It's harder to understand the question than to actually find the solution.

- Anonymous June 05, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

The question says that,
Each alphabet represents a digit. It is a 10 digit number.
ABCDEFGHIJ
First digit(A) represents the number of 0's in the number. Second digit(B) represents the number of 1's in the number and so on.

Question is: Find the 10 digit number satisfying the above condition.

- Anonymous February 01, 2011 | Flag
Comment hidden because of low score. Click to expand.
1
of 1 vote

Answer is 6210001000.

First digit(6) represents the number of 0's in the above number.
Second digit(2) represents the number of 1's in the above number and so on.

- Anonymous February 01, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

no answers

- Subhash April 02, 2007 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

6210001000
----------
0123456789

- Chungwei April 02, 2007 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

"

" can you tell me how did you proceed in finding the solution of this  question, are there any more number which are following this pattern "

"

- Subhash April 03, 2007 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

There is only one solution, take any 10 digit number and keep fixing it for number of digits present, you will end up with number chungwei gave.

- anonymous coward April 23, 2007 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

I was wondering if there is a proof: that fixing the digits this way will converge to the right answer??

- Anonymous April 24, 2007 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

answer is 6 2 1 0 0 0 1 0 0 0
here we find 6 zeros , 1 six , 2 ones and 1 two
so the sum is 6+2+1+1=10

- PAVAN (RVCollege of Eng - bangalore) July 27, 2007 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

the sum of those digits in the number has to be 10
A+B+...+K=10
since they are the number of respective (based on pocession) digits in that number .

- PAVAN (RVCollege of Eng - bangalore) on July 27, 2007 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

what abt 9000000000????

- abhra November 09, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

whenever asking a question please give complete examples or clearly explains the problem

- Anonymous March 27, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

7100000100
----------
0123456789

- MadhuP April 01, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

whats that ?? 7 zeroes is fine , but 1 ones? thr r 2

- Anonymous April 04, 2008 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

8100000000
----------
0123456789

- Anur April 23, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

not correct. 0 eights?

- Anonymous November 01, 2008 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

7100000100
0123456789

- Addy June 18, 2009 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

[7100000100]
[0123456789]

- Addy June 18, 2009 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

{{[7100000100]
[0123456789]}}

- Addy June 18, 2009 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

({{[7100000100]
[0123456789]}}}

- Addy June 18, 2009 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

@Andy, "7100000100" has two 1's but you are saying only one there in Number which is wrong.

- siva.sai.2020 October 26, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

9 000 000 000

- chandra June 02, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

wrong. 0 nines?

- Anonymous November 01, 2008 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

7100000100
0123456789

- Addy June 18, 2009 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

7100000100
0123456789

- Addy June 18, 2009 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

Anur and Chandra ..
Cant u see that 8 and 9 is also appearing.. So the number corresponding 2 I and J should be 1.. That would mess up everything..

- Anonymous September 05, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

x+2y=10
x is the number of zeros
y is the number of ones.
in this case , x should always be even number.
so try with 2,4,6,8

- Sathya September 25, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Hey Guys ..

I was not able to understand any of the solutions ..
Can anybody please elaborate more on the solutions, or provide steps in detail

- aj February 09, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Yes Aj,I too agree.I was not able to follow any of the solutions,someone kindly post the entire question and what is expected.Honestly from the question i was not able to figfure out why these answers where posted.

- Anonymous March 13, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

if six 0's,2 ones,1 two & 1 six =10 then even 7 0's ,2 one's and 1 two can make it 7+2+1=10

- anonymous@PAVAN March 13, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

7100000100
0123456789

- addy June 18, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Another variant of this question:
Find the no. of
0's---
1's---
2's---
3's---
4's---
...
9's---
in this question.

- Anonymous August 13, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Take any 10 digit number and start moving.
eg.-

lets take -
0123400000 // sum of digits is 10

4123410000 ->
4213410000 ->
5210401000 ->
6210001000

- harsh January 26, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

0123456789
6210001000

- sanjeevnk January 29, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

0123456789
6210001000

- sanjeevnk January 29, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Number is : 6210001000
public class puzzle
{

static int a[]=new int[10];

static int getNumberCount(int searchnumber)
{
int count=0;
for(int i=0;i<10;i++)
{
if(a[i]==searchnumber)
count++;
}
return count;
}

public static void main(String args[])
{
for(a[0]=1;a[0]<=9;a[0]++)
for(a[1]=0;a[1]<=9;a[1]++)
for(a[2]=0;a[2]<=9;a[2]++)
for(a[3]=0;a[3]<=9;a[3]++)
for(a[4]=0;a[4]<=9;a[4]++)
for(a[5]=0;a[5]<=9;a[5]++)
for(a[6]=0;a[6]<=9;a[6]++)
for(a[7]=0;a[7]<=9;a[7]++)
for(a[8]=0;a[8]<=9;a[8]++)
for(a[9]=0;a[9]<=9;a[9]++)
{
if(a[0]==getNumberCount(0) && a[1]==getNumberCount(1) &&a[2]==getNumberCount(2) &&a[3]==getNumberCount(3) &&a[4]==getNumberCount(4) &&a[5]==getNumberCount(5)&&a[6]==getNumberCount(6)&&a[7]==getNumberCount(7)&&a[8]==getNumberCount(8)&&a[9]==getNumberCount(9))
System.out.println("Number : "+a[0]+a[1]+a[2]+a[3]+a[4]+a[5]+a[6]+a[7]+a[8]+a[9]);
}
}
}

- Aneesh Singh April 06, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Number is : 6210001000

public class puzzle
{

static int a[]=new int[10];

static int getNumberCount(int searchnumber)
{
int count=0;
for(int i=0;i<10;i++)
{
if(a[i]==searchnumber)
count++;
}
return count;
}

public static void main(String args[])
{
for(a[0]=1;a[0]<=9;a[0]++)
for(a[1]=0;a[1]<=9;a[1]++)
for(a[2]=0;a[2]<=9;a[2]++)
for(a[3]=0;a[3]<=9;a[3]++)
for(a[4]=0;a[4]<=9;a[4]++)
for(a[5]=0;a[5]<=9;a[5]++)
for(a[6]=0;a[6]<=9;a[6]++)
for(a[7]=0;a[7]<=9;a[7]++)
for(a[8]=0;a[8]<=9;a[8]++)
for(a[9]=0;a[9]<=9;a[9]++)
{
if(a[0]==getNumberCount(0) && a[1]==getNumberCount(1) &&a[2]==getNumberCount(2) &&a[3]==getNumberCount(3) &&a[4]==getNumberCount(4) &&a[5]==getNumberCount(5)&&a[6]==getNumberCount(6)&&a[7]==getNumberCount(7)&&a[8]==getNumberCount(8)&&a[9]==getNumberCount(9))
System.out.println("Number : "+a[0]+a[1]+a[2]+a[3]+a[4]+a[5]+a[6]+a[7]+a[8]+a[9]);
}
}
}

- Aneesh Singh April 06, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

This question provides the answer in the question itsel, then what on earth are we to find?

- APA May 07, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

This question provides the answer in the question itsel, then what on earth are we to find?

- APA May 07, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

This question provides the answer in the question itsel, then what on earth are we to find?

- APA May 07, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

for 8 igit number its:

42101000

(asked in amazon)

- Anonymous November 10, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

4-digit number is:
1210
5-digit number is:
21200
7-digit number is:
3211000

- yesem September 08, 2017 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

You gus are retarded

- Jjj June 04, 2022 | Flag Reply
Comment hidden because of low score. Click to expand.
-2
of 2 vote

The answer is

- Chandu August 16, 2007 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Oops...sorry I was wrong...

- Chandu August 16, 2007 | Flag


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