The assestment was online and had 4 parts.
problem 1
Imagine a list of messages stored in a single linked list, one user read the first message and last first each day,
being those the first node and last node and remove them from the list, the sum of the values of those nodes mean the total number of effort to complete the task in those emails.
write a function with O(1) time which calculate the max number of days who will took complete tasks in the list.
Ex.
input: 1->2->3->5
output: 6 (the sum of 1 and 5 will result in the maximun numbers of day required in the list 6)
Ex 2.
input: 1->2->6->5
output: 8 (the sum of 2 and 6 will result in the maximun numbers of day required in the list 8)
problem 2
Given an array with only 0's and 1's, write a function which calculate the minum numbers of swap to sort the array with all the zeros at the left and numbers one to the right and.
input: [ 0,1,0,1,1]
output: 1
The System Design was also online with mock peers simulating work behavioral question, you will have one messages sent by one of your peers asking for help in some situation and you will have to select the best options from a list it were more or les 15 to 20 questions.
Work Style survey was like a psychological quest, you will have two sentences and you will need to select whatever is most like you