So today i came up with another challenge
Get word’s letters total
Create a procedure that you provide it a word and it will return the sum of all of its letters according to the numbers corresponding to the letters:
Example table ( that will help you debugging ):
Hope those examples explain what i’m talking about.
String => 87
Daily challenge => 118
[email protected] => 0
1- This procedure can calculate the total of a two words or more.( see example 2 )
2- If there is some undefined words they will be calculated as 0 ( see example 3 )
3- Spaces are ignored.
4- You can’t use any extensions or components.
5- The fastest , shortest, but functional answer will be marked as solution 2020-08-26T23:00:00Z
How could I missed it! Will do it now
It is interesting : D
Actually, after seeing
@dora_paz’s solution, I reduced blocks combining mine and her logic!
But this doesn’t count as my solution
I think looking at the code you have the least amount of blocks
But thanks to
@dora_paz for the idea.
You got my solution
After like 10 daily challenge I improved a lot! I treat them as a practice, because the aim is to kode with the least amount of blocks. This forces myself to optimize my block more and more
@Mohamed_Tamer You shouldn’t mark that as solution because it’s not completely belongs to me
I believe you deserve it !
You are right
I thought no one will get a shorter solution.Any way, i will wait until 2020-08-26T23:00:00Z maybe someone gets something shorter.
Btw, if you want to create more daily challenges, post it here to reserve!
Since a time will come where two users would “race” to make a daily challenge, you can use this topic to reserve your spot so there aren’t 2 daily challenges in a day. Simply reply with the daily challenge number.
But it is off-topic so I would like any mods to change it to discuss. Thanks!
@Peter (Sorry but I need you attention )
Yes i tried but its read only now.