0% found this document useful (0 votes)
3 views

New_Week 3rd - Assignment 1th (1)

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

New_Week 3rd - Assignment 1th (1)

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

DSA With Coding Army

Assignment : 1st Week : 2nd Date : 03/12/2024


1. Calculate the product of all the elements in the given array.
2. Find the second largest element in the given Array in one pass.
3. Find the minimum value out of all elements in the array.
4. Given an array, predict if the array contains duplicates or not.
5. WAP to find the smallest missing positive element in the sorted
Array that contains only positive elements.
6. Predict the output :
int main()
{
int sub[50], i ;
for ( i = 0 ; i <= 48 ; i++ ) ;
{
sub[i] = i ;
cout<<sub[i]<<endl ;
}
return 0;
}

Note:- Please try to invest time doing the assignments which are necessary to build a strong
foundation. Do not directly Copy Paste using Google or ChatGPT. Please use your brain 😃.

You might also like