Commit e093752
committed
feat: Perform left rotation on array by one position
🧠 Logic:
- Print the original array.
- Store the first element in a temporary variable.
- Shift all elements one position to the left.
- Assign the stored first element to the last index of the array.
- Print the updated array after rotation.
Signed-off-by: Somesh diwan <[email protected]>1 parent 3e857c3 commit e093752
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
0 commit comments