7 kyu
Suzuki needs help lining up his students!
1,136 of 3,387user8476848
Loading description...
Strings
Sorting
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.
Lua translation
python new test framework is required. updated in this fork
Approved
TypeScript translation
Approved
CoffeeScript translation
Suzuki needs all the help we can give
Approved
Listen the one that need help is me!!! First day coding!!
Tbh Suzuki really need to learn to be more independent, he relies too much on other codewarriors for all kinds of things.
Scala translation, review would be appreciated as author is apparently absent.
Approved by someone
Factor translation
Approved
COBOL translation (author gone).
Approved
JS: Node v14 should be used along with its appropiate assertion tools (Mocha + Chai). Refer to this and this
Updated to Node v14
This comment has been hidden.
Fixed (removed extra space)
Ruby 3.0 should be enabled, see this to learn how to do it
Enabled in this fork
Python 3 should be enabled.
Done.
i succseeded to sort the names by lenght and in reverse. now, all i need to do is sort the equle length names. any ideas how?
This comment has been hidden.
Kono katha no tame ni arigatō!
I have failed random test , but looking at the result I dont understand one thing - How come "Yoshiro" can precede "Nobuyuki" in the result. Am I missing something? "Yoshiro" - 7 letters, "Nobuyuki" - 8 ltters. Am i wrong?
arrays first differed at element [12]; expected:<[Yoshiro]> but was:<[Nobuyuki]>
hello, i need to see your code and the full test case you are failing on. please post and mark spoiler.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
Excuse me, but I don't know how can I get access to your answer. Never tried this before and I am confused. Just give me a suggestion what should i look for and I try ti fix my code, because so far I can not spot any mistake (compared input/output and both look the same for me)
Now it appeared , I did not know it works this way. Thank you. Good lesson for me . Definitely i will learn from this approach. Thak you again, for your help.
No problem at all glad it helped.
You need to change the input parameter of lineup_students to be a string, not a string array. You are NOT passing in an array to the function, so people are set up to fail unless they notice and change this.
Thanks I just changed the initial solution.
Awesome, thanks for maintaining this! It was good LINQ practice
No worries I forgot to change it last night when I did the translation. Thanks for being the first to point it out so I could change it.
This comment has been hidden.
This comment has been hidden.
i did a new kumite of this trying to do a translation on this kata in c# can please have some help on how to take my kumite and make it into one of the translations into this kata thank you ....
Sure go here and select translate the Kata then select language C#
For more information about how to create a translation see the codex => * The conjured Codewars codex
It does not work sorry
There is no c# translation button but there is for other languages...
You have to select the + button then all the languages will appear.
it says I must complete it first ....
I tried already clicking the start but it says I must complete the kata first I already kumited this kata in c# hopeing that was the same as a translation
I did this Kata and translated here is the link to my wall profile to see the Kumite I am going to bed please write me and then tomorrow I will reply https://www.codewars.com/users/Ze-Marcos/published_kumite
There is more to do for a translation. You need to build tests and run them through the translation Kumite editor.
4.11.3 Writing a translation
Now you found a kata in JavaScript. You liked it, and want to translate it into Python. There should be a "+" sign next to the language icons after you solved it. Click on it and you'll land on the list of current translations. After you've checked that there isn't a pending translation in Python, you click on "Translate this kata".
This will open translation kumite editor. Choose the language in the drop-down menu before you write any code. Then fill the (initial) solution and (example) tests. Save your progress often to prevent data loss. Whenever you're ready, publish your translation.
This comment has been hidden.
Agreed, very strange, as it doesn't exist in the two test cases, but does appear in the remaining cases when submitting.
I don't know if it's on purpose, but the author definitely knows about it because he puts
.trim()
in his solution.Suzuki you are ridiculous! XD
Could you clarify what the sort order is supposed to be if the names have the same length? From the example it seems like they should be in reverse order than how they appear in the original string, but this isn't the case in the random test cases.
Hello thanks for the message. The instructions and examples on the Kata description are correct sort in descending order.I believe you may be referring to the unsorted string.
I think reverse alphabetical (Z->A) would be more clear than "descending". Descending typically refers to numbers, from largest to smallest.
I was confused when doing the kata, as well, and had to rely on the test cases...
I changed the description from descending to reverse alphabetical as you have suggested. Thanks for the feedback.
There's an extra comma in one of the test cases: [... ",Nobuyuki" ...].
Hello will you please tell me specifically where this error is occurring in the tests? I didn’t code the Ruby or Javascript translations but after reviewing them I do not see this issue. There is no extra comma on any of the fixed tests so I assume this is occurring during the random tests. Is the error occurring in the Javascript translation during random tests? Thank you for helping me make this Kata better.
I think I accidently modified the test cases, sorry about that.
No worries I just wanted to make sure there wasnt an issue. I think the translations are solid. Thanks
This comment has been hidden.
Mind to explain in a more diffuse way?
This comment has been hidden.
This comment has been hidden.
My javascript output is visually identical to the expected output and the test will pass if I change to assertSimilar. Any hints?
My mistake, you got the old version of the example test cases (the full tests pass without problems); copy&paste this in your window, if you wish:
Thank you, that works.
Ruby (already approved, thanks!) and JS translations kumited :)
Hi Giacomo will you take a look at his issue?
No clue about what it means, but did a small change to the test cases to be extra sure.
In what order should the names of equal lengths be?
Hello thank you for the feedback. I have updated the Kata description to include an example of the order names of equal length should be returned. Thanks