7 kyu
Love vs friendship
7,368 of 20,496J or nor J
Loading description...
Fundamentals
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
Thank you my friend
Does anyone occured with "j" letter numeric problem? I tried to generate "a1, b2 c3" with different ways (first one through "for" array generation and another one with charCodeAt method). Both times for "j" returned alphabet's position were "10", instead of "7" as it is in reality.
Here: "['a', 'b', 'c', 'd', 'e', 'f', 'j', ..." returned [1, 2, 3, 4, 5, 6, 10, 8, 9, 10, 11 ...]
*May be it's linked with 'j' using in nested arrays counting?
You're missing
g
,h
, andi
there. So, the right alphabet's position is 10, not 7 as you said.I fixed the java translation. The kata is already done.
https://www.codewars.com/kumite/5a9b035cfd5777a6f8000114?sel=63470c5875d527c4dc3aff01
Applied some improvements and approved.
Powered by katafix 🤖
Description doesn't make the task that clear, might be worth updating it?
Suggested fix in this fork
.
Update to Scala 3
.
NASM translation
Can't be approved, description changes.
You can create a new fork and approve it.
D translation
Approved!
C translation (author inactive)
Approved
This comment has been hidden.
You need to mark your comment as Spoiler when you post parts of solution. About your question, you can read here: https://stackoverflow.com/questions/4968406/javascript-property-access-dot-notation-vs-brackets
I usually complain when the title or description doesn't match what we're supposed to do. But this one is an exception, I love your subtle message :)
I am getting an error
"Traceback (most recent call last): File "tests.py", line 2, in from solution import words_to_marks ImportError: cannot import name 'words_to_marks' from 'solution' (/workspace/default/solution.py)"
there is something wrong with testing?
change the python version to 3.8, that should be enough (if not, reset the trainer, but don't forget to copy your code before, otherwise... x) )
Rust translation kumited.
Could you please advise, is a = 1, b = 2, c = 3 ... z = 26 already built in this kata? I am new to Python and programming
Wondering the same thing..
They aren't. You have to make such a dataset (list/set/dictionary etc.) yourself.
This comment has been hidden.
from string import ascii_lowercase will give you a variable (type string) called ascii_lowercase which equals 'abcdef...wxyz' (ascii_uppercase works the same way)
I can not see the results only red and green lights are shown. Is that happed to all or only me?
nice one
C, Clojure, CoffeeScript, C++, Dart, Elixir, Factor, Go, Groovy, Haskell, Julia, Kotlin, Lua, Nim, PHP, Racket, Reason, Swift, and TypeScript translations.
Go translation approved.
EDIT: Elixir also approved.
There is some merge conflict, please fix them.
Do these still need merge conflicts fixing?
I can do so if needed.
Lua and Dart approved
This comment has been hidden.
This comment has been hidden.
Thanks for the nice kata!
R translation kumited.
Basic tests and random test parameters taken from python version. Reference solution commented in the test suite.
Please carefully review and approve :)
Kata approved after anter clean-up: any chance of having the translations published and see it on its own legs, now?
This comment has been hidden.
Description updated, should make more sense now.
still makes no sense
JS, Ruby and Crystal translations kumited :)
Function names in Python should be in snake_case, not CapitalCase like classes: can you fix it?
Function and variable name fixed in python, keepeing backward compatibility.
Wrong choice of variable name in the solution setup: "String" should be "strng" or "s" (not titlecase, not "str" and not "string").
cheers
Function and variable name fixed in python, keepeing backward compatibility.