7.9 | Implement Cyclic Right Shift in Linked List | Elements of Programming Interviews in Python EPI
3 years ago
27
NOTE:
Right after the k %= n line, you should also check if k is now equal to 0, if so, return L, since no shifts are required. This would trigger in case of k = 5, n = 5 etc., (5 % 5 == 0).
EPI (Elements of programming interviews in python), Question 7.9
Loading comments...
-
6:06
Matea Vasileski
3 years ago $0.03 earned5.8 | Computing an Alternation | Elements of Programming Interviews in Python (EPI)
74 -
11:50
Matea Vasileski
3 years ago6.6 | Reverse All the Words in a Sentence | Elements of Programming Interviews in Python (EPI)
55 -
8:11
Matea Vasileski
3 years ago $0.02 earned5.15 | Compute a Random Subset | Elements of Programming Interviews in Python (EPI)
72 -
7:04
Matea Vasileski
3 years ago7.7 | Remove the Kth Last Element From a List | Elements of Programming Interviews Python (EPI)
40 -
12:24
Matea Vasileski
3 years ago $0.01 earned5.10 | Permute the Elements of an Array | Elements of Programming Interviews in Python (EPI)
85 -
4:53
Matea Vasileski
3 years ago $0.01 earned6.5 | Test Palindromicity | Elements of Programming Interviews in Python (EPI)
29 -
2:43
ZorabsPython
1 year agoHow to swap elements inside a list [ Python Programming ]
2 -
6:31
Matea Vasileski
3 years ago $0.01 earned8.3 | Valid Parenthesis | Elements of Programming Interviews in Python (EPI)
67 -
8:47
Matea Vasileski
3 years ago $0.02 earned5.9 | Enumerate All Primes to N | Elements of Programming Interviews in Python (EPI)
60 -
5:58
arjunthecoder
1 year agoEasy Implementation LeetCode 206. Reverse Linked List , in Python
6