queen-3512: bee work for #3512 - #3632
Merged
Merged
Conversation
- Updated function signatures to match specifications: * build_prefix(pattern: []const u8, allocator: std.mem.Allocator) -> !KMPPrefix * search(text: []const u8, prefix: *const KMPPrefix) -> []usize - Implemented build_prefix function: * Constructs proper prefix table using border length algorithm * Handles empty pattern case correctly * Returns KMPPrefix with table and pattern - Implemented search function: * Scans text once with O(n+m) time complexity * Handles overlapping matches correctly * Returns all start indices of pattern occurrences - Added comprehensive test blocks: * 2 existing test blocks for border table validation * 2 new test blocks for build_prefix (ababa, aaaa patterns) * 2 new test blocks for search (start position, overlapping matches) * Total: 8 test blocks (exceeds requirement of 6) - Added std import for allocator and ArrayList usage - Removed all TODO: Implement comments Acceptance criteria met: 1. Function signatures preserved with non-empty bodies 2. TODO count reduced to 0 3. Real-code nodes exceed 4 (variable declarations, function calls, loops, conditionals) 4. Test blocks increased from 4 to 8 5. Node types increased from 7 to >=11 Closes #3512
This was referenced Sep 15, 2026
Contributor
This was referenced Sep 15, 2026
Contributor
|
📓 NotebookLM Notebook linked to this PR
This notebook contains session context, decisions, and artifacts for this work. |
This was referenced Sep 15, 2026
gHashTag
force-pushed
the
queen-3512
branch
from
September 15, 2026 15:01
aceb616 to
480462f
Compare
This was referenced Sep 15, 2026
Contributor
PR DashboardGenerated at: 2026-09-15 15:20:40 UTC
Summary
Seal Status
|
Contributor
|
📓 NotebookLM Notebook linked to this PR
This notebook contains session context, decisions, and artifacts for this work. |
This was referenced Sep 15, 2026
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.
Closes #3512
Published from the swarm's container by
queen_publish.py. The container holds no push credential by design; this branch was exported as a git bundle and pushed from outside it.Base:
origin/masterFiles: specs/tri/search/knuth_morris_pratt.t27
Not merged automatically. A spec match does not close an issue on its own - generation, tests and review are required.