Dunzo | SE 2 Backend | OA
Anonymous User
1004

Hi all,
I applied for Dunzo SE II Backend role. It was for 2hrs.
First round was OA on hackerrank. 3 questions were given(2 of DSA + 1 of hitting a given API and then processing it).

  1. Some long description, but ultimately boiling down to a sliding window question. It was to find the max of min of all k sized subarrays.

    arr = [8,2,4,6], k = 2.
    ans is max of min of [8,2], [2,4], [4,6]
    ans = max(2,2,4) = 4
    

    I am not able to find the question online. Can anyone help me here?

  2. Again a question on sliding window. I don't remember the exact question but it had a string of 0's, 1's and 2's and a int value given as k. we had to find number of substrings which had k number of 0's,1's and 2's or something like that.
    Again, Not able to find it online. Please help

  3. Don't remember it exactly, but some API was given and we have to hit that API and get the response. After getting that, we'd to either sort the response or return the JSON Objects based on the JSON object which had the max no of comments(It was to get all articles on page and then every article had diff props like comments, links etc.)
    How are we supposed to parse JSON without any library?

Comments (3)