Java Lead Interview Questions

18,793 java lead interview questions shared by candidates

last round-> input stream of no.s , find count of elements minimum than this coming number in better than O(n), I told max heap but it's n/2 better than O(n) and second is BST which is difficult to implement. Interiewer was ok with heap approach but i told its better than linear but still linear then he said work it out in log n
avatar

Java Developer

Interviewed at Medlife.com

3.3
Nov 7, 2017

last round-> input stream of no.s , find count of elements minimum than this coming number in better than O(n), I told max heap but it's n/2 better than O(n) and second is BST which is difficult to implement. Interiewer was ok with heap approach but i told its better than linear but still linear then he said work it out in log n

Viewing 381 - 390 interview questions

Glassdoor has 18,793 interview questions and reports from Java lead interviews. Prepare for your interview. Get hired. Love your job.