+ 2
CHALLENGE SPEAKING NUMBERS
Create a program that gets numbers and creates a word with it example: input: 123 output: abc
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 âș
+ 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
+ 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 đ
+ 12
see the example only :::
input ::: 5122123 , output ::: abbahi
//btw u can leave that ... bcz it can be produced by multiple inputs
+ 11
@Gaurav
Good idea, good start. . But what about 1? And which numbers matches to "SolOleArn"?đ€
.......
......
.........
I think that is spam đ
+ 6
@Diego Alexis
Please provide with more sample inputs and outputs or examples
+ 2
okay lemme go check the algo
+ 1
on what logic should the word be chosen?
+ 1
caldim za
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.
0
Here is the solution of the challenge which I am seeing right now.
https://code.sololearn.com/co0OHWv2eZ8B/?ref=app
0
@ Gaurav can you send me few more examples