0% found this document useful (0 votes)
532 views1 page

Problems - Wissen Software Developer Hiring Challenge

This document is a summary of the second programming question from the Wissen Software Developer Hiring Challenge test. The question asks the test taker to find all subarrays of a given array where the average sum of the subarray is greater than the average sum of the remaining elements, and to print the start and end indexes of each qualifying subarray in sorted order. The input will include the number of elements in the array, followed by a line listing the space-separated element values.

Uploaded by

jay
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)
532 views1 page

Problems - Wissen Software Developer Hiring Challenge

This document is a summary of the second programming question from the Wissen Software Developer Hiring Challenge test. The question asks the test taker to find all subarrays of a given array where the average sum of the subarray is greater than the average sum of the remaining elements, and to print the start and end indexes of each qualifying subarray in sorted order. The input will include the number of elements in the array, followed by a line listing the space-separated element values.

Uploaded by

jay
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

07/04/2019 Problems - Wissen Software Developer Hiring Challenge.

Wissen Software Developer Hiring Challe…


[email protected]
: 24 : 20 left Help  End Test
2 Questions Total Marks: 200.0 Question 2
Max. Marks 100.00 

2 Programming Questions
Finding the Subarrays

1. Directory Deletion + 100.0


You are given an array of
elements. You need to nd all
the subarrays such that their
2. Finding the Subarrays + 100.0
average sum is greater than the
average sum of the remaining
array elements. You need to
print the start and end index of
each subarray in sorted order
in a new line.
Notes: 

A subarray which starts


at  position and ends
at position  comes
before a subarray that
starts at  and ends at
 if  or if
 but
The array indexes are in
the range to .
The average sum of an
empty array is 0.

Input
The rst line contains an
integer that denotes the
total number of elements in the
array.
The next line contains space
separated integers that denote
the elements of the array .
?

https://www.hackerearth.com/challenges/hiring/wissen-software-devoloper-hiring-challenge/problems/8eddca2107114ab7847ec… 1/1

You might also like