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.
- Prepare
- C++
- Introduction
- Arrays Introduction
- Discussions
Arrays Introduction
Arrays Introduction
Sort by
recency
|
1345 Discussions
|
Please Login in order to post a comment
I though Variable Length Arrays (VLAs) where not supported by C++, and my compiler thinks so too. I had to use vectors,
Solving this problem helps build a solid foundation for understanding how arrays work. By finding the solution, you will enhance your learning experience on HackerRank. Fairplay24 pro register
include
include
include
include
include
using namespace std;
int main() { int n; cin>>n; vectorarr(n); for(int i=0;i>arr[i]; } for(int i=n-1;i>=0;i--){ cout<