Zoho Interview Report
- 0of 0 votes
AnswersRotate the matrix elements
- axaysd June 22, 2016 in United States
For 3*3 matrix
Input
1 2 3
4 5 6
7 8 9
Output:
4 1 2
7 5 3
8 9 6
For 4*4 matrix
Input:
1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16
Output:
5 1 2 3
9 10 6 4
13 11 7 8
14 15 16 12| Report Duplicate | Flag | PURGE
Zoho SDE1 General Questions and Comments - 0of 0 votes
AnswersGiven a two dimensional array of string like
- axaysd June 22, 2016 in United States
<”luke”, “shaw”>
<”wayne”, “rooney”>
<”rooney”, “ronaldo”>
<”shaw”, “rooney”>
Where the first string is “child”, second string is “Father”. And given “ronaldo” we have to find his no of grandchildren Here “ronaldo” has 2 grandchildren. So our output should be 2.| Report Duplicate | Flag | PURGE
Zoho SDE1 General Questions and Comments - 0of 0 votes
AnswerGiven a set of numbers like <10, 36, 54,89,12> we want to find sum of weights based on the following conditions
- axaysd June 22, 2016 in United States
1. 5 if a perfect square
2. 4 if multiple of 4 and divisible by 6
3. 3 if even number
And sort the numbers based on the weight and print it as follows
<10,its_weight>,<36,its weight><89,its weight>
Should display the numbers based on increasing order.| Report Duplicate | Flag | PURGE
Zoho SDE1 General Questions and Comments