Add answer key for Debugging workshop#646
Open
beagandica wants to merge 1 commit into
Open
Conversation
Covers all tutorial bugs and three C algorithm exercises: Tutorial section (consolidated from inline expand blocks): - Binary Search: recursive call searched upper half instead of lower half - Quicksort: missing p1++ after swap in partition loop - Vector: forgot to update list->__arr after realloc Exercise 1 - Binary Tree: correct treeAdd, treeRemove (3 cases), findMin implementations with sentinel node pattern Exercise 2 - Binary Heap: correct heapAdd (sift up) and heapRemoveMax (sift down) for 1-indexed max heap array Exercise 3 - Burrows-Wheeler Transform: suffix array construction + safe modulo pattern for C remainder operator pitfall Also includes: - Common bugs to watch for per exercise - GDB and Valgrind quick reference table - Note about C remainder vs modulo operator PT-BR translation exists. C code is language-agnostic. 10-model QA passed (3 clean passes). Hugo build verified. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
87da355 to
df93db4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Complete answer key for the C Debugging workshop covering all tutorial bugs and three algorithm exercises.
Changes
New file: \content/english/debugging/answer-key.md\
Tutorial section (bugs already shown in expand blocks, now consolidated):
Exercise solutions (correct implementations):
Teacher resources:
Languages affected
Testing
Note
Exercise implementations are based on the algorithm descriptions in the workshop. The Replit links (Exercise 1-3) returned 404 during development — the exercise environments may need to be verified separately.