Skip to content

Commit dbf96a2

Browse files
refactor 189
1 parent 2fe08c3 commit dbf96a2

File tree

1 file changed

+1
-0
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+1
-0
lines changed

src/main/java/com/fishercoder/solutions/_189.java

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public static class Solution4 {
6767
* O(n) time
6868
* O(1) space
6969
* The most optimal, we can safely ignore all the above three solutions... :)
70+
* Credit: https://leetcode.com/problems/rotate-array/solution/ Approach #3
7071
*/
7172
public void rotate(int[] nums, int k) {
7273
k = k % nums.length;

0 commit comments

Comments
 (0)