Checking the order

  • 5
  • unavailable
Hierarchy is a dictator's first tool for maintaining order and military control. We'll think about a dictatorship later. For now, let's make a list of 10 words. Let's use the keyboard to enter them. Our task is to check whether the list is ordered by increasing string length. If not, we'll display the index of the first element that violates this order.
You can't complete this task, because you're not signed in.
Comments(4)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Grigore TurcanLevel 9 , Chisinau
3 January, 19:46
why my code does no work ?
RomanLevel 41
4 January, 06:57
If you need help, something isn't right in your code, the server won't accept your solution (even if you are 100% sure that it is correct). Describe your question/issue in the HELP section at codegym.cc/help.
arvindsidLevel 10 , Chennai
27 October 2018, 06:29
what is wrong with my solution? iam getting an error saying the index element should be displayed and not the order
RomanLevel 41
29 October 2018, 06:29
If you need help, something isn't right in your code, the server won't accept your solution (even if you are 100% sure that it is correct). Describe your question/issue in the HELP section at codegym.cc/help.