Draft
In order or not?
173 of 288aec58
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.
Where is Condition about double letters?
Duplicate.
Duplicate of what? At least you should point out an example ;-)
People are so unhappy about the "duplicate" messages, as if preventing bad content from getting out of beta is a crime...
Anyway, here's a link to an identical kata which was approved long ago ;)
Just out of interest, this kata is still in beta even though it hasnt been discussed or updated recently, should it not be retired?
No, katas are retired when they're too poor in quality and/or they're complete duplicates.
ok just wondered
very good to use linq for an 8kyu difficulty in my opinion
It would be helpful to explain that null and single charater strings are to be considered IN ORDER. And that strings whic neither ascend nor descend eg. "oo" should also return IN ORDER.
I'm not quite sure about it, but seems that there should be "std::string" instead of "string" in the function proposal.
BTW. I've enjoyed your's task
My code does not pass tests and I can't figure out why. I checked it carefully. What about the same letters? They are considered ordered or not? In other words, "ordered" letters must form an increasing or non-decreasing sequence? This is a very different things...
Ruby, Cystal and of course Python version translated.
Other than adding random test cases, I would also work to add a few more edge test cases, including words with upper and lower cases, empty or monocharacter strings (which, in my translations, default to "IN ORDER", as I thought it made more sense). Again let me know if you might need some support on this, cheers.
It would be nice if the kata were explicit about whether being "in order" was case-sensitive, whether it applied to non-alpha characters, etc. I'm still not sure what the original intent of the kata is.
Much more tenuously, it might be nice to use a better type than a string as the return value in languages where that makes sense---in C++, something like
enum class ordering { in_order, in_reverse_order, not_in_order }
.I suggest adding to the description that even if two (or more) letters in a row are the same, rule is still met. For example: poll would be 'IN REVERSE ORDER'. I wonder what would be the right return value, if input would be 'aaa' for example. I suppose both in order and reverse should be correct.
Two good translations are still waiting for beeing approved!
C#-Translation kumited.
Hi, I have a question regarding the C# translation. A single element word e. g.
e
is in or out of order? Thanks, suicHi
suic
,i agree, the kata description is for such cases a litte unclear. But in the C#-version such inputs are considered as "in order", since the check is in the following order: "in order", "not in order", "in reverse order".
Needs random test cases
C++-Translation kumited.
Nice Kata! Thanx.
Very nice kata! Thanx!