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.
Lua translation!
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 :) )
duplicate
https://www.codewars.com/kata/54cf4fc26b85dc27bf000a6b
I feel like it should be mentioned in the problem Statement that not only you have to check if the numbers lign up, but also if the string is the exact lenght, contains ivalid characters etc.
Am I being stupid here?
I think I've solved this, but I'm getting the following test failure in PHP:
It should equal 3, not 1, right?
JavaScript, CoffeScript: no random tests
C# Translation
Missing fixed tests for strings using
"
as placeholders in (present in Python && PHP)JS
Ruby
Ruby:
NO random tests
3.0 should be enabled
This comment is hidden because it contains spoiler information about the solution
Hey all! I made a Julia translation. Would appreciate it if any reviewers who are fellow Julia fans could take a look.
The Rust translation has a laundry list of issues, to be frank. Here are some:
I was hoping the Rust translation was in better shape than the Python version. Too bad.
Dart issues:
print()
statements aren't shown at all (is it somehow disabled?)a
,b
andn
as methods, but they are defined as getters (?)In the Rust version, the AST format description has:
These open the variant construction call with ( and close it with }.
I'm assuming the translator meant to close it with ), because the fields are not labeled like a struct variant would be.
C translation (author inactive)
Loading more items...