45,000 Jobs - Get an Interview Call,  Post Your Resume Here
SURESHKUMAR.NET FORUMS
Registered Member Login:
Not a member? Register today!



Welcome to the SURESHKUMAR.NET FORUMS.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.




Puzzle asked in Oracle : What is the number?

        

Reply
 
LinkBack Thread Tools Display Modes
Old 10-08-07, 11:51 AM   #1 (permalink)
Super Moderator
 
sk_kireeti's Avatar
 
Join Date: Feb 2006
Posts: 2,379
Blog Entries: 4
Thanks: 118
Thanked 319 Times in 238 Posts
Rep Power: 60 sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute
Puzzle asked in Oracle : What is the number?

There are 5 digits (XXXXX) in a number and each digit of the number has a specific meaning.

1 st digit -> represents number of 0's in the number
2 nd digit -> represents number of 1's in the number
3 rd digit -> represents number of 2's in the number
4 th digit -> represents number of 3's in the number
5 th digit -> represents number of 4's in the number

What is the number?

Also explain your approach to solution if there is any logical approach.

Thanks,
Krishna

sk_kireeti is offline Offline   Reply With Quote
Old 18-08-07, 12:41 PM   #2 (permalink)
Member
 
romeovictor04's Avatar
 
Join Date: Jun 2007
Location: kochi, kerala, india
Age: 29
Posts: 31
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 3 romeovictor04 is on a distinguished road
Re: Puzzle asked in Oracle : What is the number?

21200 Am I Right
romeovictor04 is offline Offline   Reply With Quote
Old 20-08-07, 02:25 PM   #3 (permalink)
Super Moderator
 
sk_kireeti's Avatar
 
Join Date: Feb 2006
Posts: 2,379
Blog Entries: 4
Thanks: 118
Thanked 319 Times in 238 Posts
Rep Power: 60 sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute
Re: Puzzle asked in Oracle : What is the number?

You are correct romeovictor. It is the only possible number.

Is there any logical approach for this? If you can explain how you scoped the number of possibilities to 1 would be of very useful to us.

Thanks,
Krishna
sk_kireeti is offline Offline   Reply With Quote
Old 20-08-07, 02:26 PM   #4 (permalink)
Super Moderator
 
sk_kireeti's Avatar
 
Join Date: Feb 2006
Posts: 2,379
Blog Entries: 4
Thanks: 118
Thanked 319 Times in 238 Posts
Rep Power: 60 sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute
Re: Puzzle asked in Oracle : What is the number?

Here is the java program which does the same....


/* **************************************************** */
/* here is the puzzle for which the code finds solution.*/
/* */
/* There are 5 digits (XXXXX) in a number and each digit*/
/* of the number has a specific meaning. */
/* */
/* 1 st digit -> represents number of 0's in the number */
/* 2 nd digit -> represents number of 1's in the number */
/* 3 rd digit -> represents number of 2's in the number */
/* 4 th digit -> represents number of 3's in the number */
/* 5 th digit -> represents number of 4's in the number */
/* */
/* What is the number? */
/* **************************************************** */

public class puzzle
{

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

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

public static void main(String args[])
{
for(a[0]=1;a[0]<=4;a[0]++)
for(a[1]=0;a[1]<=4;a[1]++)
for(a[2]=0;a[2]<=4;a[2]++)
for(a[3]=0;a[3]<=4;a[3]++)
for(a[4]=0;a[4]<=4;a[4]++)
{
if(a[0]==getNumberCount(0) && a[1]==getNumberCount(1) &&a[2]==getNumberCount(2) &&a[3]==getNumberCount(3) &&a[4]==getNumberCount(4))
System.out.println("Number : "+a[0]+a[1]+a[2]+a[3]+a[4]);
}
}
}
sk_kireeti is offline Offline   Reply With Quote
The Following 2 Users Say Thank You to sk_kireeti For This Useful Post:
ExamsExpert (19-05-09), prac87 (26-07-09)
Old 20-08-07, 09:41 PM   #5 (permalink)
Member
 
romeovictor04's Avatar
 
Join Date: Jun 2007
Location: kochi, kerala, india
Age: 29
Posts: 31
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 3 romeovictor04 is on a distinguished road
Re: Puzzle asked in Oracle : What is the number?

the only possible logical solution is elimination.
i started with the first number and eliminated all other numbers except 1 & 2
if i give 1 then the second number will be 2 or 3
and the third number will be either 2 or 3
then it wont be possible to solve the equation

thei i put 2 in the first place and in the third place
i had only one place left and that could be only the first place and the number could be only 1.

thats all

RV

Last edited by romeovictor04; 20-08-07 at 09:44 PM..
romeovictor04 is offline Offline   Reply With Quote
Old 01-02-08, 08:32 PM   #6 (permalink)
deepu
 
Join Date: Jan 2008
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 2 deesam is on a distinguished road
Smile Re: Puzzle asked in Oracle : What is the number?

HEY I TOO GOT IT..IT IS 21200..THANQ 4 NICE PUZZLE
deesam is offline Offline   Reply With Quote
Old 17-02-08, 04:38 AM   #7 (permalink)
Junior Member
 
Join Date: Feb 2008
Age: 25
Posts: 8
Thanks: 3
Thanked 1 Time in 1 Post
Rep Power: 2 Nips is on a distinguished road
Thumbs up Re: Puzzle asked in Oracle : What is the number?

21200
31000
40000

are the possible solution (there might be few more ).

Logic is just arrangement and 0 plays great deal of role in it .
Nips is offline Offline   Reply With Quote
Old 18-02-08, 01:11 PM   #8 (permalink)
Unregistered
Unregistered
 
Posts: n/a
Exclamation Re: Puzzle asked in Oracle : What is the number?

Quote:
Originally Posted by Nips View Post
21200
31000
40000

are the possible solution (there might be few more ).

Logic is just arrangement and 0 plays great deal of role in it .
21200 is correct, but ...
31000 says there are no 3's.
40000 says there are no 4's.
  Reply With Quote
Old 09-04-08, 01:30 PM   #9 (permalink)
Junior Member
 
aegis007's Avatar
 
Join Date: Apr 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 2 aegis007 is on a distinguished road
Re: Puzzle asked in Oracle : What is the number?

Quote:
Originally Posted by Nips View Post
21200
31000
40000

are the possible solution (there might be few more ).

Logic is just arrangement and 0 plays great deal of role in it .
"21200" is alone correct.

In "31000" u used number 3, then u should specify the number of 3's in the 4th digit.
Similarly in "40000" u used 4 in the first digit but should specify number of 4's in the 5th digit.
aegis007 is offline Offline   Reply With Quote
Old 18-04-08, 11:43 AM   #10 (permalink)
Junior Member
 
Join Date: Apr 2008
Age: 26
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 2 Annapurna_Kulkarni is on a distinguished road
Re: Puzzle asked in Oracle : What is the number?

Hi Kireeti.

Could you please explain me clearly i am confused !!!!!!!!!!

please explain me the method how you selected those numbers only adn how you concluded ..... Please do reply
Annapurna_Kulkarni is offline Offline   Reply With Quote
Old 11-03-09, 11:36 PM   #11 (permalink)
Junior Member
 
Join Date: Mar 2009
Age: 25
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 1 phanisrikanth_n is on a distinguished road
Thumbs up Re: Puzzle asked in Oracle : What is the number?

there is only one answer 21200 it`s wonderfull
phanisrikanth_n is offline Offline   Reply With Quote
Old 19-05-09, 04:57 PM   #12 (permalink)
Junior Member
 
Join Date: May 2009
Age: 27
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 1 ExamsExpert is on a distinguished road
Re: Puzzle asked in Oracle : What is the number?

I agree 21200 is the only answer. Great post BTW and great forum with lots of informative threads
ExamsExpert is offline Offline   Reply With Quote
Reply

Tags
asked , number , oracle , puzzle


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
tips for interview ozobalu HR Questions 13 14-11-09 01:50 AM
must read all UG students!!!!!!!!!!!!! sanjay Other Queries 16 07-02-09 02:31 PM
ORACLE India - Walk-In For BSc and BCA freshers of 2005 & 2006 (0-2 yrs.) sridhar Walk-ins 2 04-08-08 10:49 PM
Oracle Apps Functional H1b Visa 2007 sridhar Experienced Jobs 0 04-03-07 02:12 PM
TCS PAPER & INTERVIEW - 23 JUN 2006 sridhar TCS Placement Papers 0 12-02-07 05:01 PM


All times are GMT +6.5. The time now is 06:37 PM.

More Interview Questions Here...

Content Relevant URLs by vBSEO 3.3.0