-
Notifications
You must be signed in to change notification settings - Fork 0
test sliding window funcs #19
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
Conversation
longest substr
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||
User description
longest substr
PR Type
Enhancement, Tests
Description
Implement sliding window algorithms for longest substring and maximum subarray
Add lengthOfLongestSubstringTwoDistinct function with OrderedDict tracking
Add maximumUniqueSubarray function for finding max sum of unique elements
Comprehensive test suite with 30+ test cases covering edge cases and validation
Diagram Walkthrough
File Walkthrough
longestUnique.py
Sliding window algorithms for substring and subarray problemsAlgorithms/slidingWindow/longestUnique.py
track at most 2 distinct characters
all unique elements
minimum length constraint
management
test_longest_substring.py
Comprehensive test suite for sliding window algorithmstests/test_longest_substring.py
lengthOfLongestSubstringTwoDistinct
multiple duplicates
alternating patterns
checking
constraints