Clarivate Analytics | Associate Software Engineer | Bengaluru | OA |
Anonymous User
1446

Clarivate Analytics - Online Assessment
Time- 1 hour
Platform- Hackerrank
Position- Associate Software Engineer

5 MCQ and 2 coding question

  1. Counting Bits-
    Given an integer n and return the number of 1's in the binary representation of n.
    Example-
    input-37 output-3
    input-70 output-3

  2. Max Chunks To Make Sorted II
    You are given an integer array arr.
    We split arr into some number of chunks (i.e., partitions), and individually sort each chunk. After concatenating them, the result should equal the sorted array.
    Return the largest number of chunks we can make to sort the array.
    Example-
    Input: arr = [2,1,3,4,4]
    Output: 4
    Explanation:
    We can split into two chunks, such as [2, 1], [3, 4, 4].
    However, splitting into [2, 1], [3], [4], [4] is the highest number of chunks possible.

Comments (1)