{"Persepolis"=>14, "Adults in the Room"=>11}
["Noughts & Crosses x10",
"ts x7",
"immortal",
"tur x4",
"nothing x2",
"persepolis x10",
"thwae",
"tdc",
"The Hare with Amber Eyes",
"Outline by Rachel",
"thwae",
"tgd"]
expected: {"Adults in the Room"=>11, "Persepolis"=>14}
got: {"Adults in the Room"=>11, "Persepolis"=>4}
(compared using ==)
Diff:
@@ -1,3 +1,3 @@
"Adults in the Room" => 11,
-"Persepolis" => 14,
+"Persepolis" => 4,
The catalog needs 14 Persepolis.
However, in the inventory notes, there is "persepolis x10"
Why does the reference solution expect 14 Persepolis? There are 10 Persepolis in the inventory.
1 word book (only "Persepolis") was badly handled in my code,
it's fixed now :)
look like a bug.. i check that, thx
The catalog needs 14 Persepolis.
However, in the inventory notes, there is "persepolis x10"
Why does the reference solution expect 14 Persepolis? There are 10 Persepolis in the inventory.
sorry ^^
maybe too complex :D sorry
haha
i disagree with
.map(&:eval)
advice. "[1,2,3]".eval will trigger an NoMethodErrorThis comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Can you explain your solution?
Thanks voile, instructions updated
What about words with other characters mixed in alongside letters and digits? How are they supposed to be handled?
What if the first letter of a word is a digit? What if the first letter of every word is a digit?
Also, how are non-letter and digits removed? Before or after split? These are all unclear from the description.
thx for your time, i hope you enjoyed it ^^
:D
Yep, it works with my spaghetti code :p
i've changed my implem :D
thx a lot
Loading more items...