Because:

For empty string return 0

Plus generated number should be the smallest possible number you can get.

So, any single letter -> 1

PHP Translation, can someone evaluate?

This shit doesn't make sense lol. Instructions need to be clearer

i dont understand the instructions. 'Digits in the number should match letters in the word.' then why is C in the first test string equal to 1?

thx sir, i past the test case but no for random test... i will try next time. :)

No, read the instructions again:

Words will contain of maximum 10 distinct letters, but word can be any length, even longer than 10 characters long.

The digits go from 0 to 9.

how to get the digits? is a=1, z=26? like this? thx for the answer

"Word to initial number" PHP Translation, to be evaluated

This comment is hidden because it contains spoiler information about the solution

Just the read the description couple of times more.

is this according to ASCII ? how do i know what each letter represents as a number?

Python translation

Because:

So, any single letter -> 1

PHP Translation, can someone evaluate?

This shit doesn't make sense lol. Instructions need to be clearer

i dont understand the instructions. 'Digits in the number should match letters in the word.' then why is C in the first test string equal to 1?

thx sir, i past the test case but no for random test... i will try next time. :)

No, read the instructions again:

The digits go from 0 to 9.

how to get the digits?

is a=1, z=26? like this?

thx for the answer

"Word to initial number" PHP Translation, to be evaluated

This comment is hidden because it contains spoiler information about the solution

Just the read the description couple of times more.

is this according to ASCII ? how do i know what each letter represents as a number?

Python translation

## Loading more items...