Draft

In order or not?

173 of 288aec58
Description
Loading description...
Fundamentals
  • Please sign in or sign up to leave a comment.
  • cootook Avatar

    Where is Condition about double letters?

  • FArekkusu Avatar

    Duplicate.

  • kmjones77 Avatar

    Just out of interest, this kata is still in beta even though it hasnt been discussed or updated recently, should it not be retired?

  • razvangry Avatar

    very good to use linq for an 8kyu difficulty in my opinion

  • makewrite Avatar

    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.

  • nazwisko999 Avatar

    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

  • vadimtukaev Avatar

    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...

  • GiacomoSorbi Avatar

    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.

  • deviant-logic Avatar

    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 }.

  • lucky3 Avatar

    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.

  • user5036852 Avatar

    Two good translations are still waiting for beeing approved!

  • Dentzil Avatar
  • donaldsebleung Avatar

    Needs random test cases

  • Dentzil Avatar

    Nice Kata! Thanx.

  • user5036852 Avatar

    Very nice kata! Thanx!