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:31
Matea Vasileski
3 years ago $0.01 earned8.3 | Valid Parenthesis | Elements of Programming Interviews in Python (EPI)
67 -
4:53
Matea Vasileski
3 years ago $0.01 earned6.5 | Test Palindromicity | Elements of Programming Interviews in Python (EPI)
29 -
13:15
Matea Vasileski
3 years ago $0.03 earned6.4 | Replace and Remove | Elements of Programming Interviews in Python (EPI)
172 -
6:06
Matea Vasileski
3 years ago $0.03 earned5.8 | Computing an Alternation | Elements of Programming Interviews in Python (EPI)
74 -
7:04
Matea Vasileski
3 years ago7.7 | Remove the Kth Last Element From a List | Elements of Programming Interviews Python (EPI)
40 -
8:47
Matea Vasileski
3 years ago $0.02 earned5.9 | Enumerate All Primes to N | Elements of Programming Interviews in Python (EPI)
60 -
7:18
Matea Vasileski
3 years ago $0.08 earned5.12 | Sample Offline Data | Elements of Programming Interviews in Python (EPI)
133 -
2:11:14
Pro League Network
1 day agoPutt Tour (Pro Minigolf 10.21.24)
25.3K2 -
3:30:11
GameLeap RAID Shadow Legends
5 hours ago $0.48 earnedHow to GET HUGE CVC REWARDS! BIG Champion Upgrades! - Raid Shadow Legends Guide
10.9K1 -
LIVE
SwitzerlandPlayIT
6 hours agoDitching CnC3 for Wolfenstein!!!
189 watching