Posts

Showing posts with the label tech mahindra

Nick's Check

Image
                                                  NICK'S CHECK .......................................................................................................................................................................... connect with me on Facebook Twitter Instagram Github Youtube ................................................................................................................................................................ connect with me on Facebook Twitter Instagram Github Youtube

Sum of largest and smallest element in array by tech mahindra 2022

Image
 Sum of the largest and smallest element in the array by tech Mahindra 2022.. .......................................................................................................................................................................... connect with me on Facebook Twitter Instagram Github Youtube ............................................................................................................................................ connect with me on Facebook Twitter Instagram Github Youtube

Second largest element in an array

Image
Given an array (containing at most 1000 positive integers), find the second largest integer. If there exists no second largest integer, return-1,  Input Specification:   input1 : length of the array input2: an array of positive integers  Output Specification:  Return the second largest number or-1 accordingly Example 1: input1: 3 input2: (2,1,2).. .......................................................................................................................................................................... connect with me on Facebook Twitter Instagram Github Youtube   ...................................................................................................................................................... connect with me on Facebook Twitter Instagram Githu...