We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
You just need to return an array of n integers. The values can be anything, as long as the array length matches the input. For example, if n = 5, valid outputs could be [0,1,2,3,4] or [10,20,30,40,50]. This simple task helps beginners practice arrays and is often found in an Educational Guide for American Universities.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Array Of N Elements
You are viewing a single comment's thread. Return to all comments →
You just need to return an array of n integers. The values can be anything, as long as the array length matches the input. For example, if n = 5, valid outputs could be [0,1,2,3,4] or [10,20,30,40,50]. This simple task helps beginners practice arrays and is often found in an Educational Guide for American Universities.