Skip to content
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

feat: add a JS solution of 189 #712

Merged
merged 7 commits into from
Feb 11, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
chore: format comment
  • Loading branch information
KimYangOfCat committed Feb 11, 2022
commit cb62a44eb1fd7433c44124d97a19aabaee15c675
2 changes: 1 addition & 1 deletion solution/0100-0199/0189.Rotate Array/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ var rotate = function (nums, k) {

};
function reverse(nums, start, end) {
//双指针实现翻转
// 双指针实现翻转
while (start < end) {
const temp = nums[start];
nums[start] = nums[end];
Expand Down