Google coding interview question

Правка en2, от calmdown_69, 2020-09-02 15:03:36

Hello everyone.

Reference: here

problem statement:

An array is good if all subarrays have atleast 1 element in them whose frequency is 1.

Good : 1,2,1
Good: 1,2,5,2,4,3,4
Bad: 1,2,3,1,2,3

O(N^2) solution is easy but can anyone share a better approach for this question.
Thank you.

Теги coding interviews

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский calmdown_69 2020-09-02 15:03:55 0 (published)
en2 Английский calmdown_69 2020-09-02 15:03:36 117
en1 Английский calmdown_69 2020-09-02 15:02:45 327 Initial revision (saved to drafts)