Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
RISC-V Translation
I was not careful enough to distinguish between
and
andandi
, but it seems that the RISC-V assembler was generous enough to fix them for me :)I thought
mv
is pseudoinstruction that used widely...RISC-V translation
This is my first translate submission. Please review carefully. Thanks.
Suggestion :: Add
"tetrafluoromethane" = {'C': 1, 'F': 4}
as fixed test.This test makes sure that non-exist element should be removed from result.
During random test, I got following error ::
I'm not going to argue whether we can call "C2" as "ethenyne".
However, it is very weird that removing non-existent element from result causes errors.
If we should output "ethenyne" as
{'H': 0, 'C': 2}
, why not{'H': 0, 'C': 2, 'O': 0, 'N': 0, 'Cl': 0, 'F': 0, ......}
?"Sample test" of golang is broken.
line 21 says ::
In this case, inner closure pickups variable
i
anddat
that will be changed by for loop.In pactice, test suit will run after
dat
andi
is bounded to last test case, and then, allExcept
function will called with same test case.To fix this, this should be modified as: