Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

wrong result in description of lexicographical_compare.md in algorithm #612

Open
destro-2698 opened this issue Dec 5, 2020 · 3 comments · May be fixed by #625
Open

wrong result in description of lexicographical_compare.md in algorithm #612

destro-2698 opened this issue Dec 5, 2020 · 3 comments · May be fixed by #625
Labels
bug Something isn't working

Comments

@destro-2698
Copy link
Contributor

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):

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

@destro-2698 destro-2698 added the bug Something isn't working label Dec 5, 2020
@destro-2698 destro-2698 changed the title Invalid wrong result in description of lexicographical_compare.md in algorithm Dec 5, 2020
@anishsingh935
Copy link

hi I can solve this problem .
so can I contribute

@anishsingh935
Copy link

to this issue

@Jenniferwyqq
Copy link

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

@Jenniferwyqq Jenniferwyqq linked a pull request Jun 8, 2021 that will close this issue
3 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants