feat(stacks-queues): expand from 1 to 28 algorithms - #32
Merged
Conversation
…r variants Add 27 new algorithms across 8 techniques: validation (2), monotonic-stack (3), expression-evaluation (3), stack-design (4), stack-applications (3), queue-operations (4), queue-design (4), queue-applications (4). New trackers: NumericStackTracker, ExpressionTracker, QueueTracker. Extended StackQueueVisualState with optional fields for numeric arrays, queues, auxiliary stacks, output tokens, result arrays, circular buffers. Extended StackQueueVisualizer with conditional rendering for all new visual states. Updated InputEditor to use GenericIntrospectEditor for diverse input shapes. Optimized E2E specs by merging redundant per-algorithm tests into single tests. Increased E2E CI shards from 12 to 14 and local workers from 50% to 75%.
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
NumericStackTracker,ExpressionTracker,QueueTracker— each extendsBaseTrackerand producesStackQueueVisualStateStackQueueVisualStatewith optional fields for numeric arrays, queues, auxiliary stacks, output tokens, result arrays, circular buffers, monotonic ordering, and phase labelsStackQueueVisualizerwith conditional rendering for all new visual state sections (queue row, auxiliary stack column, output/result rows, circular buffer ring, badges)InputEditorto useGenericIntrospectEditorfor stacks-queues (diverse input shapes)GenericIntrospectEditorto handle deeply-nested non-numeric arrays without crashingAlgorithms added
Test plan
npm run lintpassesnpm run formatpassesnpm run typecheckpassesnpm test— 6312 tests pass (676 files)npm run storybook:buildpasses