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.
In the description we have that
but then nowhere we have a description that program is just one function.
I think either adding
program ::= function
to the grammar, or saying that testcases will be valid functions would save me quite some confusion and probably few minutes.I've re-written the Rust translation, to address a number of issues:
Please approve!
I've created a fork that addresses all of these issues except for the randomised tests, since none of the other translations have randomised tests either.
And another issue:
Seemed like the fixed tests either got added or removed some time ago, because I saw all languages have unified fixed test cases now, would have to check and verify it again later ^^
Description can & should be made language agnostic.
Sorry, which testcase is it that should be added?
I'm fixing the Ruby version.
Nice kata, good if you want to learn about closures
Lua translation!
This comment is hidden because it contains spoiler information about the solution
yes it is, here are docs with a great breakdown https://docs.codewars.com/gamification/ranks/
Because the first 9 chars expected to be digits
too many edge cases for this during testing.
great problem!
Would love to see a follow up problem to this one maybe something like getting assembly (or some kind of bytecode) as input and the goal is to produce a readable expression like:
input:
AR 0 SW IM 2 MU SW IM 1 SU
output:
[a] 1-a*2
(this wouldn't be a 1kyu problem but it would be fun :) )
Cool kata! It feels like a real world problem.
Loading more items...