feat(algorithms, sliding-window): permutation in string#181
feat(algorithms, sliding-window): permutation in string#181BrianLusina merged 3 commits intomainfrom
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review infoConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughA new "Permutation in String" sliding-window feature was added: two implementations, a README, unit tests, and a DIRECTORY entry; plus a minor trailing-comma import edit in an unrelated test. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@algorithms/sliding_window/permutation_in_string/README.md`:
- Around line 25-26: The README constraint upper bound is incorrectly written as
"104"; update the constraint string "1 <= s1.length, s2.length <= 104" to use
the intended upper bound (e.g., "1 <= s1.length, s2.length <= 10^4" or "1 <=
s1.length, s2.length <= 10000") so the limits are unambiguous; locate and
replace that exact text in the README.md for the permutation_in_string sliding
window problem.
- Around line 89-90: The second bullet's description is wrong: the character
removed is at the left end of the sliding window, not the right. Update the
README text so the first bullet remains "Add the count of characters at the
right end of s2 (s2[i]) in the current window." and change the second bullet to
"Remove the count of characters at the left end of s2 (s2[i - n1]) from the
current window."—search for occurrences of s2[i - n1], i, and n1 in the
permutation_in_string README to locate and correct the wording.
ℹ️ Review info
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (10)
algorithms/sliding_window/permutation_in_string/images/solutions/permutation_in_string_solution_1.pngis excluded by!**/*.pngalgorithms/sliding_window/permutation_in_string/images/solutions/permutation_in_string_solution_10.pngis excluded by!**/*.pngalgorithms/sliding_window/permutation_in_string/images/solutions/permutation_in_string_solution_2.pngis excluded by!**/*.pngalgorithms/sliding_window/permutation_in_string/images/solutions/permutation_in_string_solution_3.pngis excluded by!**/*.pngalgorithms/sliding_window/permutation_in_string/images/solutions/permutation_in_string_solution_4.pngis excluded by!**/*.pngalgorithms/sliding_window/permutation_in_string/images/solutions/permutation_in_string_solution_5.pngis excluded by!**/*.pngalgorithms/sliding_window/permutation_in_string/images/solutions/permutation_in_string_solution_6.pngis excluded by!**/*.pngalgorithms/sliding_window/permutation_in_string/images/solutions/permutation_in_string_solution_7.pngis excluded by!**/*.pngalgorithms/sliding_window/permutation_in_string/images/solutions/permutation_in_string_solution_8.pngis excluded by!**/*.pngalgorithms/sliding_window/permutation_in_string/images/solutions/permutation_in_string_solution_9.pngis excluded by!**/*.png
📒 Files selected for processing (5)
DIRECTORY.mdalgorithms/graphs/min_cost_valid_path/test_min_cost_to_make_valid_path.pyalgorithms/sliding_window/permutation_in_string/README.mdalgorithms/sliding_window/permutation_in_string/__init__.pyalgorithms/sliding_window/permutation_in_string/test_permutation_in_string.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Describe your change:
Permutation in strings
Checklist:
Fixes: #{$ISSUE_NO}.Summary by CodeRabbit
New Features
Documentation
Tests