Here's a fun one. In the language of your choice, come up with has many ways to loop through an array as possible. The goal is given an array of size n, print out each element in as many ways as you can come up with. To scope the problem, a standard for loop and while loop would be considered 2 different ways but using different variables on a for loop would not be considered different. A for loop and a prototype method in JavaScript which also uses a for loop would be considered two different ways. Feel free to use your own discretion as well.
Comments:
Kevin Benton - 10 years, 6 months ago
reply permalink
Hueho - 10 years, 6 months ago
reply permalink