Jobs
Interviews

PharmEasy

Interview Questions for PharmEasy

1. Given an array of numbers, return an array of the running sums of the original array.

2. Rotate Linked List Problem Statement Given a linked list consisting of 'N' nodes and an integer 'K', your task is to rotate the linked list by 'K' positions in a clockwise direction. Example: Input: Linked List: 1 2 3 4 -1K: 2 Output: 3 4 1 2 Explanation: After rotating the linked list by 2 positions in a clockwise direction, the resultant linked list is 3 4 1 2. Constraints: 1 <= T <= 10 1 <= N <= 105 0 <= node.data <= 109 and node.data != -1 0 <= K <= 105

3. How do you manage work pressure?

4. What is HRM according to you?

5. Write a function to invert a binary tree.