Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 44bc8ce

Browse files
author
Manjunath
committed
arranged code
1 parent d03eebe commit 44bc8ce

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

‎Data-Structure/Array/rotateArray.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Rotate Array by first D elements
2-
// Input arr= [3,4,6,7,8,10,11];
3-
// D = 4;
2+
// Input arr= [3,4,6,7,8,10,11], D = 4;
43
// Output Arr= [8,10,11,3,4,6,7]
54
// Time Complexity O(n), no extra space
65

@@ -25,4 +24,3 @@ let arr = [3, 4, 6, 7, 8, 10, 11];
2524
let d = 4;
2625
rotate(arr, arr.length, 4);
2726
console.log(arr.toString());
28-

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /