We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Function removes elements with a shift, which leads to incorrect results
https://github.com/DenCoder618/SUAI-Labs/blob/2f2ddd9929bac01ea3d5520e2c60d0585ba725ae/Semester_1/Lab_6/snippets.c#L309
For example:
list: 0 1 2 3 4 5 6 7 remove_nodes from 5 to 8 expected output: 0 1 2 3 4 real output: <empty> [error]
The text was updated successfully, but these errors were encountered:
Solution: remove every time the same node
void remove_nodes(list *list, int start, int end) { for (int i = 0; i < end - start; i++) remove_node(list, start); // start node wiithout a shift list -> size -= (end - start); }
Sorry, something went wrong.
remove_nodes issue #16 fixed
55ffa5a
potat-dev
No branches or pull requests
Function removes elements with a shift, which leads to incorrect results
https://github.com/DenCoder618/SUAI-Labs/blob/2f2ddd9929bac01ea3d5520e2c60d0585ba725ae/Semester_1/Lab_6/snippets.c#L309
For example:
The text was updated successfully, but these errors were encountered: