+ 2

CHALLENGE SPEAKING NUMBERS

Create a program that gets numbers and creates a word with it example: input: 123 output: abc

24th Dec 2017, 5:27 PM
Diego Alexis
12 Respostas
+ 20
hii guys, here is what i thinked after seeing the challenge â˜ș h=8th alphabet from beginning //if we follow the order i =9th alphabet from beginning 1 2 3 == 1 + 23 //grouping from last in even no. of terms //2 -2 digits from last will decide the output , n^(n-1) , (n-1)^n ie , 3^2 = 9 = i , & 2^3 =8 =h ... now no even no. of digits left ... only 100th placed digit ... that is 1 only left ... can't be grouped with another digit ... so stop here & output hi as the output //note ::: if n^(n-1) or (n-1)^n is more than 26 ... then start from 1 again // i can think to that extent only , don't know what u thinked before posting this challenge ... if this matched ur thinking ... then get this answer best mark ... i must get some xp for typing all this â˜ș
24th Dec 2017, 7:43 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 13
1 will have no use ... bcz it can't be grouped like 2&3 are already grouped together ... & no other digit left to get groped with 1 //i mean output for 123 will be same as that of 23 //sololearn will be output for a 16 digit number or a 17 digit number //ie , sololearn can be output for total one 16 digit number & (nine 17 digits numbers which are produced by that 16 digit number only by adding 1,2,3,....9 in the beginning of that 16 digit number) wait ... there can be many combinations of n^(n-1) or (n-1)^n ... which can produce n,r,a,e,...s of word "sololearn" 👉👉👉its not possible to tell input by seeing the output but it is damn possible to tell output by seeing the input ... as multiple inputs can produce the same output //leave it ...might i am not well today .. sorry //but i still think , it can be a good challenge ... //its a spam ... but can be converted to a good challenge
24th Dec 2017, 7:59 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 13
@rahul , the challenge was not like stated above ... its edited one here is the challenge that was given initially 👇👇👇 input ::: 123 output :::: hi //now , u need to see yourself what is happening 😂
25th Dec 2017, 8:07 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 12
see the example only ::: input ::: 5122123 , output ::: abbahi //btw u can leave that ... bcz it can be produced by multiple inputs
25th Dec 2017, 8:32 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 11
@Gaurav Good idea, good start. . But what about 1? And which numbers matches to "SolOleArn"?đŸ€” ....... ...... ......... I think that is spam 😁
24th Dec 2017, 7:57 PM
LukArToDo
LukArToDo - avatar
+ 6
@Diego Alexis Please provide with more sample inputs and outputs or examples
25th Dec 2017, 5:53 AM
Rstar
Rstar - avatar
+ 2
okay lemme go check the algo
24th Dec 2017, 7:38 PM
Android Boi
Android Boi - avatar
+ 1
on what logic should the word be chosen?
24th Dec 2017, 5:41 PM
SLaplace
SLaplace - avatar
+ 1
caldim za
24th Dec 2017, 10:42 PM
EyĂŒp Altundağ
EyĂŒp Altundağ - avatar
0
Useless , the Challenge is not stated properly. Else , it would be a very easy program. We just need to replace each digit with numbers from a - j.
25th Dec 2017, 8:05 AM
Mr.Curious
Mr.Curious - avatar
0
Here is the solution of the challenge which I am seeing right now. https://code.sololearn.com/co0OHWv2eZ8B/?ref=app
25th Dec 2017, 8:22 AM
Mr.Curious
Mr.Curious - avatar
0
@ Gaurav can you send me few more examples
25th Dec 2017, 8:23 AM
Mr.Curious
Mr.Curious - avatar