hackerrank/interview_preparation_kit_arrays.rb
# Complete the rotLeft function below.

Complete the rotLeft function below.
Complete the rotLeft function below .
def rotLeft(a, d)
  size = a.size
  d.times do
    first = a.shift
    a.insert(size-1, first)
  end
  a
end
def rotLeft ( a , d ) size = a . size d . times do first = a . shift a . insert ( size - 1 , first ) end a end
Complete the rotLeft function below.
Complete the rotLeft function below .
a
<not_specific>
d
<not_specific>