30-seconds-of-cpp icon indicating copy to clipboard operation
30-seconds-of-cpp copied to clipboard

wrong result in description of lexicographical_compare.md in algorithm

Open destro-2698 opened this issue 4 years ago • 3 comments

Describe the bug in algorithm lexicographical_compare.md, output of the given example in description is wrong; output should be true and and in description output is given as false;

To Reproduce Steps to reproduce the behavior:

  1. Go to 'algorithm/lexicographical_compare'
  2. Scroll down to explanation of the example
  3. See error where result of comparison is written as false;

Expected behavior for the example mentioned the result should be true as string a[] is lexicographically smaller than string b[]

Compiler (please complete the following information):

  • gcc 7.4.0 online compiler Rextester
  • https://rextester.com/HXU96095 // testing link

Additional context snippet must also be edited, also the snippet in markdown file and snippet is different

destro-2698 avatar Dec 05 '20 08:12 destro-2698

hi I can solve this problem . so can I contribute

anishsingh935 avatar Mar 19 '21 12:03 anishsingh935

to this issue

anishsingh935 avatar Mar 19 '21 12:03 anishsingh935

Hi, I have some ideas about this issue. Can I contribute this issue?

Jenniferwyqq avatar Jun 06 '21 06:06 Jenniferwyqq