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.
i have a doubt here, we are taking the value for n from user. If in this code I am starting to put value, I can put 5 for n , but I can do 10 or 20 values for arr
can you update where you can add only n elements taken from the user?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Find the Runner-Up Score!
You are viewing a single comment's thread. Return to all comments →
i have a doubt here, we are taking the value for
n
from user. If in this code I am starting to put value, I can put 5 forn
, but I can do 10 or 20 values forarr
can you update where you can add onlyn
elements taken from the user?