From fd7b907f90394e58157c9f1a7289297066c75c38 Mon Sep 17 00:00:00 2001 From: Deepak Kumar <137646137+deepakkumar9546@users.noreply.github.com> Date: Sun, 4 Aug 2024 10:29:01 +0530 Subject: [PATCH] Create README - LeetHub --- 0061-rotate-list/README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 0061-rotate-list/README.md diff --git a/0061-rotate-list/README.md b/0061-rotate-list/README.md new file mode 100644 index 0000000..390023b --- /dev/null +++ b/0061-rotate-list/README.md @@ -0,0 +1,24 @@ +
Given the head
of a linked list, rotate the list to the right by k
places.
+
Example 1:
+ +Input: head = [1,2,3,4,5], k = 2 +Output: [4,5,1,2,3] ++ +
Example 2:
+ +Input: head = [0,1,2], k = 4 +Output: [2,0,1] ++ +
+
Constraints:
+ +[0, 500]
.-100 <= Node.val <= 100
0 <= k <= 2 * 109