Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect flip function and no return statement #2328

Open
shrivalidutt opened this issue Oct 6, 2024 · 0 comments
Open

Incorrect flip function and no return statement #2328

shrivalidutt opened this issue Oct 6, 2024 · 0 comments

Comments

@shrivalidutt
Copy link

-In the flip function, you are swapping the elements at start and i, but you should be swapping arr[start] with arr[i], not with arr[i] again after it has already been assigned.
-The function is defined to return an integer but it does not have a return statement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant