Date of visit: 16.8.2018
Criteria: CGPA 7 above
Platform: Hackerearth
Duration: 2 hrs
This round had two programming questions for 30 marks
1) 20 mark Question
Input
10
2 4 8 3 9 2 4 8 4 5
Output
Seq: 2,4,8 Occurrence: 2
Seq:3,9 Occurrence: 1
Problem Explanation
From the given integer array we have to count the sequence which is in increasing power series that is from the [2,4,8,3,9,2,4,8,4,5] array, 2,4,8 is the increasing power series of 2 and 3,9 is the increasing power series of 3 and also we have to consider the count of each and every sequence so that 2,4,8 series occurred 2 times where as 3,9 occurred 1 times ,so this is the output of the problem
Input Explanation
First line is the array size
Second line is the array elements
2) 10 Mark Question
Input
Input Explanation
First line defines the order of matrix (N)
N line defines an elements of a matrix
Problem Explanation
For the given input value the matrix pattern should be follow as above by that for input values 3 and 5 the matrix pattern shown in figure.If the matrix follows the pattern should print "true" else "false".
Output
true
true
Note: Duration of this round was extended with another 45 min by the organizational people.
Criteria: CGPA 7 above
Platform: Hackerearth
Duration: 2 hrs
This round had two programming questions for 30 marks
1) 20 mark Question
Input
10
2 4 8 3 9 2 4 8 4 5
Output
Seq: 2,4,8 Occurrence: 2
Seq:3,9 Occurrence: 1
Problem Explanation
From the given integer array we have to count the sequence which is in increasing power series that is from the [2,4,8,3,9,2,4,8,4,5] array, 2,4,8 is the increasing power series of 2 and 3,9 is the increasing power series of 3 and also we have to consider the count of each and every sequence so that 2,4,8 series occurred 2 times where as 3,9 occurred 1 times ,so this is the output of the problem
Input Explanation
First line is the array size
Second line is the array elements
2) 10 Mark Question
Input
Input Explanation
First line defines the order of matrix (N)
N line defines an elements of a matrix
Problem Explanation
For the given input value the matrix pattern should be follow as above by that for input values 3 and 5 the matrix pattern shown in figure.If the matrix follows the pattern should print "true" else "false".
Output
true
true
Note: Duration of this round was extended with another 45 min by the organizational people.
Comments
Post a Comment