Search Results

Searching for: loop

Individual Exercises

0 / 50

Given an array of integers, return the sum of every other value in the array, starting with the first element. For example, if the array...

0 / 50

Given two integers size and num, return an array that can hold size integers and is filled with multiples of num, starting with num. For...

0 / 50

Given an array of integers, swap each pair of adjacent elements starting with the first two. For example, if the array contains the...

0 / 50

Given a string str and an int n, return a string made of the first n characters of the string, followed by the first n - 1 characters of...