+ 3

[Challenge] Scrabble

You are given n words, and must output the word with the best score. The score of a word is calculated like this (The max length of a word is 10 letters): e, a, i, o, n, r, t, l, s, u are equal 1 point d, g 2 points b, c, m, p 3 points f, h, v, w, y 4 points k 5 points j, x 8 points q, z 10 points For example: input { "This", "Is", "a", "Cool" , "Challenge" } output : Challenge https://code.sololearn.com/cXbekDgxdlyM/?ref=app

15th Feb 2018, 12:32 PM
Nitzan
Nitzan - avatar
5 Answers
+ 11
Hi nitzan! Could you please submit this challenge via lesson factory so that it can be reviewed for possible inclusion in a new, yet to be announced feature. Thanks! In lesson factory, select language "other" (as it is not language restricted) and type "assignment"
15th Feb 2018, 12:59 PM
jay
jay - avatar
15th Feb 2018, 3:00 PM
jay
jay - avatar
+ 3
OK
15th Feb 2018, 1:07 PM
Nitzan
Nitzan - avatar
+ 1
@jay great!
15th Feb 2018, 3:16 PM
Nitzan
Nitzan - avatar