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.
the issue is with how you measure whether your code is correct. by measuring differently from the tests, you get a different outcome. if you measure the same way, you will find that your function misbehaves. for example:
You're printing something and returning something else. There is no issue with the kata.
There seems to be an issue with the Kata. All test and attempt fail even when the List (Python) is shown exactly as in the example. Tried casting to string and int as well but no way to fix it?
Python translation (author gone)
JavaScript translation (author gone)
Rejected by someone, see remarks in translation above
This comment is hidden because it contains spoiler information about the solution
expect(caffeineBuzz(4)).to.equal("mocha_missing!")?
4%4=0 then expect Coffee
// This JavaScript sample tests may help you getting started:
const { expect } = require("chai");
describe('Example tests', () => {
it("returns correct values", () => {
});
});
Your solution has more than one problem, probably caused by somewhat confusing description. First of all, you do not apply the odd/even multipliers correctly, your call to
mapi
is not correct. Then you do not reduce the obtained numbers to single-digit ones.You need to fix your solution. In case of problems, you can ask for help in
#help-solve
channel of CW Discord.Language: F#
It fails test 1-4 and 6 but all other passes, manually testing it works fine on my end.
Approved
Lua translation and Prolog translation
Fixed.
Loading more items...