Hackerrank 6
Challenge
Prit’s solution
(defn rot-left [a d]
"Complexity: O(n), (= n (count a))
TOC: ~9m"
(concat (drop d a) (take d a)))
(rot-left [1 2 3 4 5] 4)(defn rot-left [a d]
"Complexity: O(n), (= n (count a))
TOC: ~9m"
(concat (drop d a) (take d a)))
(rot-left [1 2 3 4 5] 4)No posts