Get best answers to any doubt/query/question related to programming , jobs, gate, internships and tech-companies. Feel free to ask a question and you will receive the best advice/suggestion related to anything you ask about software-engineering , development and programming problems .

0 like 0 dislike
1,056 views
in Online Assessments by Expert (44,360 points)

2 Answers

0 like 0 dislike
 
Best answer

After completing my job hunt phase.. I would like to contribute back.
I have started writing my interview details... Hope it helps.

 

Online Assessment : 90mins, 3 questions

Question 2 : Write a function
class Solution ( public int|] solution(int N); }
that, given an integer N (1 ≤ N ≤ 100), returns an array containing N
unique integers that sum up to 0. The function can return any such array.
For example, given N = 4, the function could return [1, 0, -3, 2] or [-2, 1, -4,
5]. The answer [1, -1, 1, 3] would be incorrect (because value 1 occurs
twice). For N = 3 one of the possible answers is [-1, 0, 1] (but there are
many more correct answers).

by Expert (44,360 points)
0 like 0 dislike
by Expert (44,360 points)
...