We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fe08c3 commit dbf96a2Copy full SHA for dbf96a2
src/main/java/com/fishercoder/solutions/_189.java
@@ -67,6 +67,7 @@ public static class Solution4 {
67
* O(n) time
68
* O(1) space
69
* The most optimal, we can safely ignore all the above three solutions... :)
70
+ * Credit: https://leetcode.com/problems/rotate-array/solution/ Approach #3
71
*/
72
public void rotate(int[] nums, int k) {
73
k = k % nums.length;
0 commit comments