DRW 2022 New Grad SWE Codility OA
Anonymous User
4296

150 Minutes for 3 Questions:

  1. https://leetcode.com/problems/bulb-switcher-iii/

  2. Find the maximum even sum of exactly K elements taken from a given integer array

  3. Return the length of the minimum-length subarray containing all distinct elements from a given integer array

  • Ex 1: [1, 2, 3, 3, 4, 4, 3, 2, 1, 1] (Answer: 4)
  • Ex 2: [1, 2, 3, 3, 4, 4, 2, 1, 1] (Answer: 5)
Comments (2)