Preguntas de entrevistas para Senior software engineer | Glassdoor.com.ar

Preguntas de entrevistas para Senior software engineer

79

Preguntas de entrevista para senior software engineer compartidas por los candidatos

Preguntas de entrevista principales

Ordenar: RelevanciaPopular Fecha

Given an array of size n with range of numbers from 1 to n+1. The array doesn’t contain any duplicate, one number is missing, find the missing number.

2 respuestas

Traverse, use absolute value on each element as index, make the value at index as negative to mark it. If already marked negative, then is a repeating element. For missing ones, traverse again and check for positive values instead. #include #include void printTwoElements(int arr[], int size) { int i; printf("\n element repeating: "); for(i = 0; i 0) { arr[abs(arr[i])-1] = -arr[abs(arr[i])-1]; } else { printf(" %d ", abs(arr[i])); } } printf("\n missing one: "); for(i=0; i0) { printf("%d",i+1); } } } /* test method */ int main() { int arr[] = {7, 3, 4, 5, 5, 6, 2}; int n = sizeof(arr)/sizeof(arr[0]); printTwoElements(arr, n); return 0; }

^ description says there is no duplicate. So the answer here is wrong. If the numbers are ordered, then you can just make a binary search and check the (index + 1) matches value for that index until you find the missing one (i.e the first one that does not matches within the array). That's likely the fastest way O(logN).

Can you tell me a little about yourself? Why do you like to work here? Tell me about your most recent project? Any personal projects using Microsoft technology?

1 respuesta

How does Node handle multiple threads?

1 respuesta

English speaking

1 respuesta

What is the time complexity of Binary Search

1 respuesta

How to write an efficient method to calculate x raise to the power n, implement test method as well

1 respuesta

Given a number n, print all primes smaller than or equal to n. It is also given that n is a small number.

1 respuesta

They asked me what my experience was as well as my degree, language skills, expected income and if I was willing to travel abroad.

1 respuesta

Qué perfil de puesto estaba buscando y remuneración bruta pretendida.

1 respuesta

que experiencias malas tuviste.

1 respuesta
110 de 79 Preguntas de entrevistas