A small question(PUZZLE)   Independent houses near kukatpally | Apartments in Pragathi Nagar | AndhraVaani.com | Log Out | Topics | Search
Register | Edit Profile

Bewarse TalkStudents, Jobs, Visa Issues & Info � A small question(PUZZLE) Previous Next

Author Message
Top of pagePrevious messageNext messageBottom of pageLink to this message

Proofdada
Bewarse Legend
Username: Proofdada

Post Number: 30985
Registered: 03-2004
Posted From: 80.121.144.9

Rating:N/A
Votes: 0(Vote!)

Posted on Wednesday, October 19, 2005 - 2:12 am:Insert Quote Edit PostDelete PostView Post/Check IP

naakeemi artham kaalee.....rahul5->5-> rahul(0/p) ...ani matrame arthmayyindhi naaku....
Top of pagePrevious messageNext messageBottom of pageLink to this message

Mogambo
Pilla Bewarse
Username: Mogambo

Post Number: 300
Registered: 05-2005
Posted From: 68.38.199.21

Rating:
Votes: 1(Vote!)

Posted on Tuesday, October 18, 2005 - 11:07 pm:Insert Quote Edit PostDelete PostView Post/Check IP

string length = 1 digit ; display string from 0 to n-1 ; n here is <9
string length = 2 didgit ; display string from 0 to n-2 ; n here is <99
string length = 3 digit ; display string from 0 to n-3 ; n here is <999

Example: if the string is "pre5ce6ded10" - string position starts from 0.

string length = 11 (i.e., n=11)
so display string from 0 to 9

output: pre5ce6ded

Use this logic to write the program.
Top of pagePrevious messageNext messageBottom of pageLink to this message

Freshgraduate
Pilla Bewarse
Username: Freshgraduate

Post Number: 12
Registered: 05-2005
Posted From: 210.210.13.126

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, October 18, 2005 - 10:49 pm:Insert Quote Edit PostDelete PostView Post/Check IP

Give a pseudo code(i am just looking for logic)
Top of pagePrevious messageNext messageBottom of pageLink to this message

Sultan
Kurra Bewarse
Username: Sultan

Post Number: 717
Registered: 06-2005
Posted From: 68.226.157.141

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, October 18, 2005 - 10:46 pm:Insert Quote Edit PostDelete PostView Post/Check IP

vachava da
Top of pagePrevious messageNext messageBottom of pageLink to this message

Iglisias
Pilla Bewarse
Username: Iglisias

Post Number: 3
Registered: 10-2005
Posted From: 24.2.192.92

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, October 18, 2005 - 10:44 pm:Insert Quote Edit PostDelete PostView Post/Check IP





livinlavidaloka
Top of pagePrevious messageNext messageBottom of pageLink to this message

Sultan
Kurra Bewarse
Username: Sultan

Post Number: 715
Registered: 06-2005
Posted From: 68.226.157.141

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, October 18, 2005 - 10:43 pm:Insert Quote Edit PostDelete PostView Post/Check IP

Dentlo ante ye Langugae lo kavali mama?
Top of pagePrevious messageNext messageBottom of pageLink to this message

Freshgraduate
Pilla Bewarse
Username: Freshgraduate

Post Number: 11
Registered: 05-2005
Posted From: 210.210.13.126

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, October 18, 2005 - 10:39 pm:Insert Quote Edit PostDelete PostView Post/Check IP

A string say "Rahul5" is given as input to a program. If you clearly observe this string is a combination of a another string and followed by its length. The programs intention is to return only the string not the length. In this case "Rahul" must be the output.

Note: The inner string(in our case "Rahul")can also contain characters as digits. Take this example. "RAHUL56" is the input. so the "RAHUL5" is the output i am looking at and is preceded by its length 6.

Please help me solve this problem.